[PATCH 7 of 8] py3: make contrib/import-checker.py get along with itself
Yuya Nishihara
yuya at tcha.org
Sat May 14 07:33:52 UTC 2016
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1463204025 -32400
# Sat May 14 14:33:45 2016 +0900
# Node ID 4bbd966a9ebc63eedbc0c576cab9e8f2e851c8c8
# Parent bf2b2d35f363c27372de2c5ebd3eef4cdbc9f304
py3: make contrib/import-checker.py get along with itself
Indent these imports to disable the rule of "not lexically sorted."
diff --git a/contrib/import-checker.py b/contrib/import-checker.py
--- a/contrib/import-checker.py
+++ b/contrib/import-checker.py
@@ -11,8 +11,9 @@ import sys
# Import a minimal set of stdlib modules needed for list_stdlib_modules()
# to work when run from a virtualenv. The modules were chosen empirically
# so that the return value matches the return value without virtualenv.
-import BaseHTTPServer
-import zlib
+if True: # disable lexical sorting checks
+ import BaseHTTPServer
+ import zlib
# Whitelist of modules that symbols can be directly imported from.
allowsymbolimports = (
More information about the Mercurial-devel
mailing list