diff options
author | Victor Stinner <vstinner@redhat.com> | 2015-10-22 12:51:46 +0200 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2015-10-22 12:55:35 +0200 |
commit | b19202a8fbfdf2bf1aa186f52a4a7d975167f0bd (patch) | |
tree | 96935f4802be440cec29d52cf566137c36a7fa9e | |
parent | 728a7d556954a2a705e58bc6eca7857332d4940e (diff) | |
download | lockfile-b19202a8fbfdf2bf1aa186f52a4a7d975167f0bd.tar.gz |
Remove two unused variables: fix flake8 F841 warn
Fix flake8 F841 warning and enable this warning in tox.ini.
Change-Id: Ia21f94bb5e264542a26d8b5327be1df35089b065
-rw-r--r-- | lockfile/pidlockfile.py | 2 | ||||
-rw-r--r-- | tox.ini | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/lockfile/pidlockfile.py b/lockfile/pidlockfile.py index fbf7d55..069e85b 100644 --- a/lockfile/pidlockfile.py +++ b/lockfile/pidlockfile.py @@ -37,8 +37,6 @@ class PIDLockFile(LockBase): # pid lockfiles don't support threaded operation, so always force # False as the threaded arg. LockBase.__init__(self, path, False, timeout) - dirname = os.path.dirname(self.lock_file) - basename = os.path.split(self.path)[-1] self.unique_name = self.path def read_pid(self): @@ -24,6 +24,5 @@ commands = nosetests --with-coverage --cover-erase --cover-package=lockfile --cover-inclusive [] [flake8] -ignore = F841 exclude=.venv,.git,.tox,dist,doc show-source = True |