killdaemons: drop superfluous L suffix from constant stable
authorAugie Fackler <raf@durin42.com>
Mon, 10 Mar 2014 17:52:42 -0400
branchstable
changeset 1359 e23422941bae
parent 1358 805a5c2fe9c8
child 1360 e7fa36b2bd23
child 1361 1d3aa8779efb
killdaemons: drop superfluous L suffix from constant As far as I'm aware PEP 237[0] means this suffix is superfluous even on Python 2.4, and we can just drop it, which makes this code happy on Python 3. 0: http://legacy.python.org/dev/peps/pep-0237/ [ original upstream message ]
tests/killdaemons.py
--- a/tests/killdaemons.py	Wed Mar 19 00:19:54 2014 +0100
+++ b/tests/killdaemons.py	Mon Mar 10 17:52:42 2014 -0400
@@ -16,7 +16,7 @@
         logfn('# Killing daemon process %d' % pid)
         PROCESS_TERMINATE = 1
         PROCESS_QUERY_INFORMATION = 0x400
-        SYNCHRONIZE = 0x00100000L
+        SYNCHRONIZE = 0x00100000
         WAIT_OBJECT_0 = 0
         WAIT_TIMEOUT = 258
         handle = ctypes.windll.kernel32.OpenProcess(
@@ -89,4 +89,3 @@
 if __name__ == '__main__':
     path, = sys.argv[1:]
     killdaemons(path)
-