daemon
Advanced tools
+5
-5
| # -*- coding: utf-8 -*- | ||
| # Copyright (c) 2009-2014 Sauce Labs Inc | ||
| # Copyright (c) 2009-2018 Sauce Labs Inc | ||
| # | ||
@@ -70,3 +70,3 @@ # Portions taken from twistd: | ||
| os._exit(0) # kill off parent again. | ||
| os.umask(022) # Don't allow others to write | ||
| os.umask(0o22) # Don't allow others to write | ||
| null=os.open('/dev/null', os.O_RDWR) | ||
@@ -76,3 +76,3 @@ for i in range(3): | ||
| os.dup2(null, i) | ||
| except OSError, e: | ||
| except OSError as e: | ||
| if e.errno != errno.EBADF: | ||
@@ -106,6 +106,6 @@ raise | ||
| os.kill(pid, 0) | ||
| except OSError, why: | ||
| except OSError as why: | ||
| if why[0] == errno.ESRCH: | ||
| # The pid doesnt exists. | ||
| print('Removing stale pidfile %s' % pidfile) | ||
| print(('Removing stale pidfile %s' % pidfile)) | ||
| os.remove(pidfile) | ||
@@ -112,0 +112,0 @@ else: |
+1
-1
| Metadata-Version: 1.0 | ||
| Name: daemon | ||
| Version: 1.1 | ||
| Version: 1.2 | ||
| Summary: UNKNOWN | ||
@@ -5,0 +5,0 @@ Home-page: UNKNOWN |
+1
-1
@@ -7,4 +7,4 @@ # -*- coding: utf-8 -*- | ||
| name="daemon", | ||
| version="1.1", | ||
| version="1.2", | ||
| py_modules=['daemon'] | ||
| ) |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
3777
0.19%