diff contrib/check-code.py @ 32184:cf424dae5dc7

check-code: ignore re-exports of os.environ in encoding.py These are valid uses of os.environ.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 01 May 2017 17:23:48 +0900
parents 41d79475d440
children ca727147ff9f
line wrap: on
line diff
--- a/contrib/check-code.py	Wed Apr 26 21:51:19 2017 +0900
+++ b/contrib/check-code.py	Mon May 01 17:23:48 2017 +0900
@@ -474,7 +474,7 @@
 
 py3pats = [
   [
-    (r'os\.environ', "use encoding.environ instead (py3)"),
+    (r'os\.environ', "use encoding.environ instead (py3)", r'#.*re-exports'),
     (r'os\.name', "use pycompat.osname instead (py3)"),
     (r'os\.getcwd', "use pycompat.getcwd instead (py3)"),
     (r'os\.sep', "use pycompat.ossep instead (py3)"),