Skip to content

Commit

Permalink
Merge pull request #77 from aio-libs/flake8-setup-py
Browse files Browse the repository at this point in the history
Flake8 setup py
  • Loading branch information
jettify authored Dec 16, 2018
2 parents 0af0af2 + aaeb606 commit 2041c74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


flake:
flake8 aiorwlock tests examples
flake8 aiorwlock tests examples setup.py

test: flake
pytest -s
Expand Down
5 changes: 3 additions & 2 deletions aiorwlock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,6 @@ def writer(self) -> _WriterLock:
writer_lock = writer

def __repr__(self) -> str:
return '<RWLock: {} {}>'.format(self.reader_lock.__repr__(),
self.writer_lock.__repr__())
rl = self.reader_lock.__repr__()
wl = self.writer_lock.__repr__()
return '<RWLock: {} {}>'.format(rl, wl)
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


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


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


classifiers = [
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
Expand Down

0 comments on commit 2041c74

Please sign in to comment.