diff options
author | Christian Heimes <christian@cheimes.de> | 2008-02-23 17:40:11 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-02-23 17:40:11 (GMT) |
commit | c5f05e45cffa16f45f1332cec531c045893f928f (patch) | |
tree | 51fbf302701bf546b81153ddacd5cce88fd25549 /Lib/plat-mac | |
parent | 19aff0c90a1632fce527d7c81769ba419184700c (diff) | |
download | cpython-c5f05e45cffa16f45f1332cec531c045893f928f.zip cpython-c5f05e45cffa16f45f1332cec531c045893f928f.tar.gz cpython-c5f05e45cffa16f45f1332cec531c045893f928f.tar.bz2 |
Patch #2167 from calvin: Remove unused imports
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r-- | Lib/plat-mac/MiniAEFrame.py | 1 | ||||
-rw-r--r-- | Lib/plat-mac/aepack.py | 4 | ||||
-rw-r--r-- | Lib/plat-mac/bgenlocations.py | 2 | ||||
-rw-r--r-- | Lib/plat-mac/macostools.py | 2 |
4 files changed, 1 insertions, 8 deletions
diff --git a/Lib/plat-mac/MiniAEFrame.py b/Lib/plat-mac/MiniAEFrame.py index 98247cb..6a08dc9 100644 --- a/Lib/plat-mac/MiniAEFrame.py +++ b/Lib/plat-mac/MiniAEFrame.py @@ -6,7 +6,6 @@ There are two classes: only suitable for the simplest of AppleEvent servers. """ -import sys import traceback import MacOS from Carbon import AE diff --git a/Lib/plat-mac/aepack.py b/Lib/plat-mac/aepack.py index 529a0a4..9ad9c44 100644 --- a/Lib/plat-mac/aepack.py +++ b/Lib/plat-mac/aepack.py @@ -13,18 +13,14 @@ coerce(x, wanted_sample) coerces a python object to another python object # import struct -import string import types -from string import strip from types import * from Carbon import AE from Carbon.AppleEvents import * import MacOS import Carbon.File -import StringIO import aetypes from aetypes import mkenum, ObjectSpecifier -import os # These ones seem to be missing from AppleEvents # (they're in AERegistry.h) diff --git a/Lib/plat-mac/bgenlocations.py b/Lib/plat-mac/bgenlocations.py index e7fa354..271eb3e 100644 --- a/Lib/plat-mac/bgenlocations.py +++ b/Lib/plat-mac/bgenlocations.py @@ -5,7 +5,7 @@ # but mac-style for MacPython, whether running on OS9 or OSX. # -import sys, os +import os Error = "bgenlocations.Error" # diff --git a/Lib/plat-mac/macostools.py b/Lib/plat-mac/macostools.py index fc4861e..217f9e8 100644 --- a/Lib/plat-mac/macostools.py +++ b/Lib/plat-mac/macostools.py @@ -7,9 +7,7 @@ copy(src, dst) - Full copy of 'src' to 'dst' from Carbon import Res from Carbon import File, Files import os -import sys import MacOS -import time try: openrf = MacOS.openrf except AttributeError: |