Procházet zdrojové kódy

Set __package__ the same way in celeryd as elsewhere

This fixes a NameError on __package__ that got me on Python 2.5
Martin Melin před 13 roky
rodič
revize
7b5abb5fbc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      celery/bin/celeryd.py

+ 1 - 1
celery/bin/celeryd.py

@@ -73,7 +73,7 @@
 """
 from __future__ import absolute_import
 
-if "__main__" and __package__ is None:
+if __name__ == "__main__" and __package__ is None:
     __package__ = "celery.bin.celeryd"
 
 import sys