diff options
author | hut <hut@lavabit.com> | 2012-04-13 15:23:21 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-04-13 15:23:21 +0200 |
commit | b5134f71ccb8edf8ba9b6c2e7f328a1b96625bf4 (patch) | |
tree | 0cd55e146c9e80d6a9cd35235021a840ee43a895 /ranger | |
parent | 90b176ed65c0a44f118be2ab92c592df440503b2 (diff) | |
download | ranger-b5134f71ccb8edf8ba9b6c2e7f328a1b96625bf4.tar.gz |
ext.rifle: remove unnecessary code
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/ext/rifle.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index cc8dcaff..c5fafb48 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -20,10 +20,8 @@ Example usage: import os.path import re -from subprocess import Popen, PIPE +from subprocess import Popen import sys -import time -from ranger.ext.shell_escape import shell_quote from ranger.ext.spawn import spawn from ranger.ext.get_executables import get_executables @@ -101,7 +99,6 @@ class Rifle(object): tests, command = line.split(self.delimiter1, 1) tests = tests.split(self.delimiter2) tests = tuple(tuple(f.strip().split(None, 1)) for f in tests) - tests = tuple(tests) command = command.strip() self.rules.append((command, tests)) except Exception as e: @@ -214,7 +211,6 @@ class Rifle(object): """ self._mimetype = mimetype count = -1 - t = time.time() for cmd, tests in self.rules: self._skip = None self._app_flags = '' |