[Checkins] SVN: hurry.yui/trunk/s Actually declare namespace package and therefore remove silly hack.

Martijn Faassen faassen at infrae.com
Thu Oct 9 13:54:12 EDT 2008


Log message for revision 91931:
  Actually declare namespace package and therefore remove silly hack.
  

Changed:
  U   hurry.yui/trunk/setup.py
  U   hurry.yui/trunk/src/hurry/__init__.py

-=-
Modified: hurry.yui/trunk/setup.py
===================================================================
--- hurry.yui/trunk/setup.py	2008-10-09 17:53:55 UTC (rev 91930)
+++ hurry.yui/trunk/setup.py	2008-10-09 17:54:12 UTC (rev 91931)
@@ -12,6 +12,7 @@
     author_email='faassen at startifact.com',
     license='ZPL 2.1',
     packages=find_packages('src'),
+    namespace_packages=['hurry'],
     package_dir={'': 'src'},
     include_package_data=True,
     zip_safe=False,

Modified: hurry.yui/trunk/src/hurry/__init__.py
===================================================================
--- hurry.yui/trunk/src/hurry/__init__.py	2008-10-09 17:53:55 UTC (rev 91930)
+++ hurry.yui/trunk/src/hurry/__init__.py	2008-10-09 17:54:12 UTC (rev 91931)
@@ -1,9 +1,3 @@
-# XXX awful hack to make sure we don't get a warning due to two
-# namespace packages being loaded. Why this is needed I do not know,
-# haven't seen this before :(
-import warnings
-warnings.filterwarnings("ignore", "Module (.*) was already imported (.*)")
-
 # this is a namespace package
 try:
     import pkg_resources



More information about the Checkins mailing list