From b5134f71ccb8edf8ba9b6c2e7f328a1b96625bf4 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 13 Apr 2012 15:23:21 +0200 Subject: ext.rifle: remove unnecessary code --- ranger/ext/rifle.py | 6 +----- 1 file changed, 1 insertion(+), 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 = '' -- cgit 1.4.1-2-gfad0