diff options
author | Russell Bryant <russell@ovn.org> | 2016-01-06 15:16:10 -0500 |
---|---|---|
committer | Russell Bryant <russell@ovn.org> | 2016-01-20 16:45:06 -0500 |
commit | 56ec061192e3fe1590fe9e36e55080284d73f238 (patch) | |
tree | df3a71f8f1a53aa0822e0dc782fde1367462c4b8 /debian | |
parent | b3ac29477d493d9442f39c734a0a9ebaa223c308 (diff) | |
download | openvswitch-56ec061192e3fe1590fe9e36e55080284d73f238.tar.gz |
python: Fix octal compatibility.
Octal constants must be written as 0o077 instead of 0077 to be
compatible with both Python 2 and 3.
Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/ovs-monitor-ipsec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ipsec index 22883fcae..0f39191a8 100755 --- a/debian/ovs-monitor-ipsec +++ b/debian/ovs-monitor-ipsec @@ -163,7 +163,7 @@ path certificate "%s"; conf_file.close() # Rewrite the pre-shared keys file; it must only be readable by root. - orig_umask = os.umask(0077) + orig_umask = os.umask(0o077) psk_file = open(root_prefix + Racoon.psk_file, 'w') os.umask(orig_umask) |