Commit 6e9095ef by Mark Sandstrom

Update pipeline_settings to support Python 3

parent 2c63bfc9
...@@ -13,7 +13,7 @@ def pipeline_settings(**kwargs): ...@@ -13,7 +13,7 @@ def pipeline_settings(**kwargs):
try: try:
saved = {} saved = {}
for name, value in kwargs.iteritems(): for name, value in kwargs.items():
saved[name] = getattr(settings, name) saved[name] = getattr(settings, name)
setattr(settings, name, value) setattr(settings, name, value)
...@@ -21,5 +21,5 @@ def pipeline_settings(**kwargs): ...@@ -21,5 +21,5 @@ def pipeline_settings(**kwargs):
finally: finally:
for name, value in saved.iteritems(): for name, value in saved.items():
setattr(settings, name, value) setattr(settings, name, value)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment