summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-04-13 15:23:21 +0200
committerhut <hut@lavabit.com>2012-04-13 15:23:21 +0200
commitb5134f71ccb8edf8ba9b6c2e7f328a1b96625bf4 (patch)
tree0cd55e146c9e80d6a9cd35235021a840ee43a895
parent90b176ed65c0a44f118be2ab92c592df440503b2 (diff)
downloadranger-b5134f71ccb8edf8ba9b6c2e7f328a1b96625bf4.tar.gz
ext.rifle: remove unnecessary code
-rwxr-xr-xranger/ext/rifle.py6
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 = ''
15 -0800 committer Kartik Agaram <vc@akkartik.com> 2018-11-30 16:45:15 -0800 4808 - clean up comments in all subx files' href='/akkartik/mu/commit/subx/examples/ex1.subx?h=hlt&id=9d27e966b5e9bf1bd3da48f49d7e133d112a2bbe'>9d27e966 ^
d6535f33 ^
d6535f33 ^
de21899c ^
863a42d3 ^
ee9a9237 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18