Commits

Victor Stinner  committed 0be987d

hachoir-core: remove some unused imports

detected by pyflakes

  • Participants
  • Parent commits 426aec2

Comments (0)

Files changed (5)

File hachoir-core/hachoir_core/error.py

 """
 
 from hachoir_core.log import log
-from hachoir_core.tools import makePrintable, makeUnicode
+from hachoir_core.tools import makePrintable
 import sys, traceback
 
 def getBacktrace(empty="Empty backtrace."):

File hachoir-core/hachoir_core/field/seekable_field_set.py

 from hachoir_core.field import Field, BasicFieldSet, FakeArray, MissingField, ParserError
-from hachoir_core.tools import lowerBound, makeUnicode
+from hachoir_core.tools import makeUnicode
 from hachoir_core.error import HACHOIR_ERRORS
 from itertools import repeat
 import hachoir_core.config as config

File hachoir-core/hachoir_core/memory.py

 
 try:
 #---- 'resource' implementation ---------------------------------------------
-    from resource import (getpagesize,
-        getrlimit, setrlimit,
-        RUSAGE_SELF, RLIMIT_AS)
+    from resource import getpagesize, getrlimit, setrlimit, RLIMIT_AS
 
     PAGE_SIZE = getpagesize()
 

File hachoir-core/hachoir_core/text_handler.py

     durationWin64 as doDurationWin64,
     deprecated)
 from types import FunctionType, MethodType
-from hachoir_core.i18n import _
 from hachoir_core.field import Field
 
 def textHandler(field, handler):

File hachoir-core/setup.py

 #  - hg commit
 #  - hg tag hachoir-core-XXX
 #  - hg push
-#  - run python2.5 ./setup.py --setuptools register sdist bdist_egg upload
-#  - run python2.4 ./setup.py --setuptools bdist_egg upload
-#  - run python2.6 ./setup.py --setuptools bdist_egg upload
-#  - check http://pypi.python.org/pypi/hachoir-core
+#  - run: python2.5 ./setup.py --setuptools register sdist bdist_egg upload
+#  - run: python2.4 ./setup.py --setuptools bdist_egg upload
+#  - run: python2.6 ./setup.py --setuptools bdist_egg upload
+#  - check: http://pypi.python.org/pypi/hachoir-core
 #  - update the web page:
 #    http://bitbucket.org/haypo/hachoir/wiki/Install/source
 
     'Natural Language :: English',
     'Programming Language :: Python']
 
-import os
 import sys
 from os.path import join as path_join
 from imp import load_source