comparison mercurial/fancyopts.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 c4717f44c1f1
children 753af9ee7c81
comparison
equal deleted inserted replaced
20033:f962870712da 20034:1e5b38a919dd
3 # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others 3 # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 import getopt, util 8 import getopt
9 import util
9 from i18n import _ 10 from i18n import _
10 11
11 def gnugetopt(args, options, longoptions): 12 def gnugetopt(args, options, longoptions):
12 """Parse options mostly like getopt.gnu_getopt. 13 """Parse options mostly like getopt.gnu_getopt.
13 14