Parcourir la source

Fixes bug in bin.base

Ask Solem il y a 12 ans
Parent
commit
699f3a6d71
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      celery/bin/base.py

+ 1 - 1
celery/bin/base.py

@@ -176,7 +176,7 @@ class Command(object):
         for i, arg in enumerate(argv):
             if arg.startswith('-'):
                 if long_opts and arg.startswith('--'):
-                    name, val = arg.split('=', 1)
+                    name, _, val = arg.partition('=')
                     if name in long_opts:
                         return val
                 if short_opts and arg in short_opts: