Ask Solem hace 8 años
padre
commit
5cd4818f82
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/bin/celery.py

+ 1 - 1
celery/bin/celery.py

@@ -1073,7 +1073,7 @@ class upgrade(Command):
         # broker_transport_options.
         for old_key in reversed(sorted(source, key=lambda x: len(x))):
             new_line = line.replace(old_key, keyfilter(source[old_key]))
-            if line != new_line and not 'CELERY_CELERY' in new_line:
+            if line != new_line and 'CELERY_CELERY' not in new_line:
                 return 1, new_line  # only one match per line.
         return 0, line