Skip to content

Commit 2041c74

Browse files
authored
Merge pull request #77 from aio-libs/flake8-setup-py
Flake8 setup py
2 parents 0af0af2 + aaeb606 commit 2041c74

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
flake:
5-
flake8 aiorwlock tests examples
5+
flake8 aiorwlock tests examples setup.py
66

77
test: flake
88
pytest -s

aiorwlock/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,6 @@ def writer(self) -> _WriterLock:
271271
writer_lock = writer
272272

273273
def __repr__(self) -> str:
274-
return '<RWLock: {} {}>'.format(self.reader_lock.__repr__(),
275-
self.writer_lock.__repr__())
274+
rl = self.reader_lock.__repr__()
275+
wl = self.writer_lock.__repr__()
276+
return '<RWLock: {} {}>'.format(rl, wl)

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
if sys.version_info < (3, 5, 3):
11-
raise RuntimeError("aiorwlock requires Python 3.5.3+")
11+
raise RuntimeError('aiorwlock requires Python 3.5.3+')
1212

1313

1414
def read(f):
@@ -27,6 +27,7 @@ def read_version():
2727
else:
2828
raise RuntimeError('Cannot find version in aiorwlock/__init__.py')
2929

30+
3031
classifiers = [
3132
'License :: OSI Approved :: Apache Software License',
3233
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)