Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 20034:1e5b38a919dd
cleanup: move stdlib imports to their own import statement
There are a few warnings still produced by my import checker, but
those are false positives produced by modules that share a name with
stdlib modules.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 06 Nov 2013 16:48:06 -0500 |
parents | a1d88278beff |
children | af12f58e2aa0 |
comparison
equal
deleted
inserted
replaced
20033:f962870712da | 20034:1e5b38a919dd |
---|---|
12 This contains helper routines that are independent of the SCM core and | 12 This contains helper routines that are independent of the SCM core and |
13 hide platform-specific details from the core. | 13 hide platform-specific details from the core. |
14 """ | 14 """ |
15 | 15 |
16 from i18n import _ | 16 from i18n import _ |
17 import error, osutil, encoding, collections | 17 import error, osutil, encoding |
18 import errno, re, shutil, sys, tempfile, traceback | 18 import errno, re, shutil, sys, tempfile, traceback |
19 import os, time, datetime, calendar, textwrap, signal | 19 import os, time, datetime, calendar, textwrap, signal, collections |
20 import imp, socket, urllib | 20 import imp, socket, urllib |
21 | 21 |
22 if os.name == 'nt': | 22 if os.name == 'nt': |
23 import windows as platform | 23 import windows as platform |
24 else: | 24 else: |