diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2016-09-11 21:37:39 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2016-09-11 21:37:39 +0200 |
commit | 2295b37f1bf6a16740a65e4753f95924a76b9bce (patch) | |
tree | 4f8309f338d71098924c80c8942132f82ae0b8eb /miniircd | |
parent | 1b2598f846e04780305cdbd184627d2c344ee8eb (diff) | |
download | miniircd-2295b37f1bf6a16740a65e4753f95924a76b9bce.tar.gz miniircd-2295b37f1bf6a16740a65e4753f95924a76b9bce.zip |
Make it possible to use Python 3
Fixes #22.
Diffstat (limited to 'miniircd')
-rwxr-xr-x | miniircd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -678,7 +678,7 @@ class Server(object): def make_pid_file(self, filename): try: - fd = os.open(filename, os.O_RDWR | os.O_CREAT | os.O_EXCL, 0644) + fd = os.open(filename, os.O_RDWR | os.O_CREAT | os.O_EXCL, 0o644) os.write(fd, "%i\n" % os.getpid()) os.close(fd) except: |