diff --git a/shub/login.py b/shub/login.py index c570d1bc..55ec73b5 100644 --- a/shub/login.py +++ b/shub/login.py @@ -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) diff --git a/shub/tool.py b/shub/tool.py index 443ee79f..31c37a95 100644 --- a/shub/tool.py +++ b/shub/tool.py @@ -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)