[tor-commits] [chutney/master] lint: Remove unused variables and modules
nickm at torproject.org
nickm at torproject.org
Fri May 15 00:01:04 UTC 2020
commit 9c325ceb15ac0f3d6181b2c393d743633b9b508e
Author: c <c at chroniko.jp>
Date: Thu May 14 21:34:04 2020 +0000
lint: Remove unused variables and modules
---
lib/chutney/TorNet.py | 3 +--
lib/chutney/Traffic.py | 2 --
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index 41390e6..aceddb8 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -19,7 +19,6 @@ import os
import platform
import re
import signal
-import shutil
import subprocess
import sys
import time
@@ -389,7 +388,7 @@ def get_tor_modules(tor):
]
try:
mods = run_tor(cmdline)
- except subprocess.CalledProcessError as e:
+ except subprocess.CalledProcessError:
# Tor doesn't support --list-modules; act as if it said nothing.
mods = ""
diff --git a/lib/chutney/Traffic.py b/lib/chutney/Traffic.py
index d8918ee..2fae512 100755
--- a/lib/chutney/Traffic.py
+++ b/lib/chutney/Traffic.py
@@ -28,9 +28,7 @@ from __future__ import unicode_literals
import sys
import socket
import struct
-import errno
import time
-import os
import asyncore
import asynchat
More information about the tor-commits
mailing list