changeset 24909:d71492ca2fdd

crecord: fix mixed imports warning
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 09 Apr 2015 23:47:07 -0400
parents 30b910fea244
children 80a711e91507
files mercurial/crecord.py tests/test-module-imports.t
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Fri May 01 20:17:00 2015 -0400
+++ b/mercurial/crecord.py	Thu Apr 09 23:47:07 2015 -0400
@@ -20,7 +20,8 @@
 
 # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce'
 if os.name == 'posix':
-    import curses, fcntl, termios
+    import curses
+    import fcntl, termios
 else:
     # I have no idea if wcurses works with crecord...
     try:
--- a/tests/test-module-imports.t	Fri May 01 20:17:00 2015 -0400
+++ b/tests/test-module-imports.t	Thu Apr 09 23:47:07 2015 -0400
@@ -21,9 +21,6 @@
 these may expose other cycles.
 
   $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | xargs python "$import_checker"
-  mercurial/crecord.py mixed imports
-     stdlib:    fcntl, termios
-     relative:  curses
   mercurial/dispatch.py mixed imports
      stdlib:    commands
      relative:  error, extensions, fancyopts, hg, hook, util