Patchwork killdaemons: drop superfluous L suffix from constant

login
register
mail settings
Submitter Augie Fackler
Date March 13, 2014, 2:58 a.m.
Message ID <7fd338128aff97cab74f.1394679539@augie-macbookair.alto.octopoid.net>
Download mbox | patch
Permalink /patch/3935/
State Accepted
Commit 1147563faf620ad698954bf354607e346eaef80d
Headers show

Comments

Augie Fackler - March 13, 2014, 2:58 a.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1394488362 14400
#      Mon Mar 10 17:52:42 2014 -0400
# Node ID 7fd338128aff97cab74f336d441fc80ad6381a76
# Parent  1cd5bff45db28150d7c140be493fe851e6560f27
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/
Matt Mackall - March 13, 2014, 4:25 a.m.
On Wed, 2014-03-12 at 22:58 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <raf@durin42.com>
> # Date 1394488362 14400
> #      Mon Mar 10 17:52:42 2014 -0400
> # Node ID 7fd338128aff97cab74f336d441fc80ad6381a76
> # Parent  1cd5bff45db28150d7c140be493fe851e6560f27
> killdaemons: drop superfluous L suffix from constant

Queued for default, thanks.

Patch

diff --git a/tests/killdaemons.py b/tests/killdaemons.py
--- a/tests/killdaemons.py
+++ b/tests/killdaemons.py
@@ -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)
-