Skip to content

Commit

Permalink
Py3 compatibility fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Jan 30, 2015
1 parent d70d52e commit 470bfb4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions salt/modules/djangomod.py
Expand Up @@ -2,15 +2,19 @@
'''
Manage Django sites
'''
from __future__ import absolute_import


# Import python libs
from __future__ import absolute_import
import os

# Import Salt libs
import salt.utils
import salt.exceptions

# Import 3rd-party libs
import salt.ext.six as six

# Define the module's virtual name
__virtualname__ = 'django'

Expand Down Expand Up @@ -62,7 +66,7 @@ def command(settings_module,
for arg in args:
cmd = '{0} --{1}'.format(cmd, arg)

for key, value in kwargs.items():
for key, value in six.iteritems(kwargs):
if not key.startswith('__'):
cmd = '{0} --{1}={2}'.format(cmd, key, value)
return __salt__['cmd.run'](cmd, env=env, python_shell=False)
Expand Down

0 comments on commit 470bfb4

Please sign in to comment.