Skip to content

Commit

Permalink
minor py3 compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdorneles committed Jun 21, 2015
1 parent 354c53b commit 485ddd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shub/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def cli(context):
if key and is_valid_key(key):
descriptor = os.open(
NETRC_FILE,
os.O_CREAT | os.O_RDWR | os.O_APPEND, 0600)
os.O_CREAT | os.O_RDWR | os.O_APPEND, 0o600)
with os.fdopen(descriptor, 'a+') as out:
line = 'machine scrapinghub.com login {0} password ""\n'.format(key)
out.write(line)
Expand Down
2 changes: 1 addition & 1 deletion shub/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def cli():
"version": [],
}

for command, modules in module_deps.iteritems():
for command, modules in module_deps.items():
m = missing_modules(*modules)
if m:
cli.add_command(missingmod_cmd(m), command)
Expand Down

0 comments on commit 485ddd7

Please sign in to comment.