diff --git a/examples/cpushark/Capture.py b/examples/cpushark/Capture.py index 16e27a4..3009717 100644 --- a/examples/cpushark/Capture.py +++ b/examples/cpushark/Capture.py @@ -1,6 +1,5 @@ import bisect import re -import struct from Foundation import NSAutoreleasePool, NSObject, NSThread from PyObjCTools import AppHelper diff --git a/examples/cpushark/CpuShark.py b/examples/cpushark/CpuShark.py index a88780c..bddd6e5 100644 --- a/examples/cpushark/CpuShark.py +++ b/examples/cpushark/CpuShark.py @@ -1,10 +1,6 @@ import sys sys.path.insert(0, "/Users/oleavr/src/frida/build/frida-macos-universal/lib/python2.7/site-packages") -import AppDelegate -import Capture -import MainWindowController -import ProcessList if __name__ == "__main__": from PyObjCTools import AppHelper diff --git a/examples/cpushark/setup.py b/examples/cpushark/setup.py index 9506af8..6b7d521 100644 --- a/examples/cpushark/setup.py +++ b/examples/cpushark/setup.py @@ -5,7 +5,6 @@ Usage: python setup.py py2app """ -import py2app from setuptools import setup plist = dict( diff --git a/tests/__init__.py b/tests/__init__.py index 3a85b97..8da1466 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,2 +1,4 @@ from .test_core import TestCore from .test_rpc import TestRpc + +__all__ = ["TestCore", "TestRpc"] diff --git a/tests/test_rpc.py b/tests/test_rpc.py index 5370e36..b5b1b7b 100644 --- a/tests/test_rpc.py +++ b/tests/test_rpc.py @@ -1,4 +1,3 @@ -import platform import subprocess import threading import time @@ -15,7 +14,6 @@ class TestRpc(unittest.TestCase): @classmethod def setUp(cls): - system = platform.system() cls.target = subprocess.Popen([target_program], stdin=subprocess.PIPE) # TODO: improve injectors to handle injection into a process that hasn't yet finished initializing time.sleep(0.05)