From 21fcaca257c6563b2105ffd51848ae2e7e991af4 Mon Sep 17 00:00:00 2001 From: Nikolay Novik Date: Wed, 12 Dec 2018 20:20:38 +0200 Subject: [PATCH 1/2] check setup.py with flake8 --- Makefile | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cb824ef..40da06e 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ flake: - flake8 aiorwlock tests examples + flake8 aiorwlock tests examples setup.py test: flake pytest -s diff --git a/setup.py b/setup.py index 8dc5c0b..9b12650 100644 --- a/setup.py +++ b/setup.py @@ -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): @@ -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', From aaeb60673332150d4af8a89a9d0e410fe13197dd Mon Sep 17 00:00:00 2001 From: Nikolay Novik Date: Thu, 13 Dec 2018 20:22:19 +0200 Subject: [PATCH 2/2] tiny code reflow --- aiorwlock/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aiorwlock/__init__.py b/aiorwlock/__init__.py index f885980..4f762e3 100644 --- a/aiorwlock/__init__.py +++ b/aiorwlock/__init__.py @@ -271,5 +271,6 @@ def writer(self) -> _WriterLock: writer_lock = writer def __repr__(self) -> str: - return ''.format(self.reader_lock.__repr__(), - self.writer_lock.__repr__()) + rl = self.reader_lock.__repr__() + wl = self.writer_lock.__repr__() + return ''.format(rl, wl)