[csw-devel] SF.net SVN: gar:[17552] csw/mgar/gar/v2/lib/python/inspective_package.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Mar 25 19:48:49 CEST 2012


Revision: 17552
          http://gar.svn.sourceforge.net/gar/?rev=17552&view=rev
Author:   wahwah
Date:     2012-03-25 17:48:49 +0000 (Sun, 25 Mar 2012)
Log Message:
-----------
checkpkg: Do not use aliases of modules

It throws off the linter, and makes it less obvious which module is
used.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/inspective_package.py

Modified: csw/mgar/gar/v2/lib/python/inspective_package.py
===================================================================
--- csw/mgar/gar/v2/lib/python/inspective_package.py	2012-03-25 17:48:20 UTC (rev 17551)
+++ csw/mgar/gar/v2/lib/python/inspective_package.py	2012-03-25 17:48:49 UTC (rev 17552)
@@ -2,7 +2,7 @@
 import os
 import re
 import logging
-import hachoir_parser as hp
+import hachoir_parser
 import sharedlib_utils
 import magic
 import copy
@@ -55,7 +55,7 @@
         % full_path)
     raise package.PackageError(msg)
   if sharedlib_utils.IsBinary(file_info):
-    parser = hp.createParser(full_path)
+    parser = hachoir_parser.createParser(full_path)
     if not parser:
       logging.warning("Can't parse file %s", file_path)
     else:

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list