[ntpsec commit] Don't modify a Pyton keyword.

Eric S. Raymond esr at ntpsec.org
Sat Oct 3 17:47:32 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    d244eb2ec92799546f69820230b264b84cbdb908
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=d244eb2ec92799546f69820230b264b84cbdb908

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Sat Oct  3 13:46:43 2015 -0400

Don't modify a Pyton keyword.

---

 pylib/configure.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pylib/configure.py b/pylib/configure.py
index 9423612..b8f4883 100644
--- a/pylib/configure.py
+++ b/pylib/configure.py
@@ -94,8 +94,8 @@ def cmd_configure(ctx):
 
 	types = ["int32", "int32_t", "uint32_t", "int64_t", "uint64_t", "uint_t", "size_t", "wint_t", "pid_t", "intptr_t", "uintptr_t"]
 
-	for type in sorted(types):
-		ctx.check_type(type, ["stdint.h", "sys/types.h"])
+	for inttype in sorted(types):
+		ctx.check_type(inttype, ["stdint.h", "sys/types.h"])
 
 	net_types = (
 		("struct if_laddrconf", ["sys/types.h", "net/if6.h"]),
@@ -305,7 +305,6 @@ def cmd_configure(ctx):
 		from refclock import refclock_config
 		refclock_config(ctx)
 
-
 	if ctx.options.enable_ipv6:
 		ctx.define("ENABLE_IPV6", 1)
 		# These other things should be derived,



More information about the vc mailing list