~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/python_standard_libs.py

  • Committer: Henning Eggers
  • Date: 2010-08-27 15:38:25 UTC
  • mto: This revision was merged to the branch mainline in revision 11469.
  • Revision ID: henning@canonical.com-20100827153825-tzudt3kgq91s0nbb
Added format-imports script and documented it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
""" A list of top-level standard python library names.
 
5
 
 
6
This list is used by format-imports to determine if a module is in this group
 
7
or not.
 
8
The list is taken from http://docs.python.org/release/2.5.4/lib/modindex.html
 
9
but modules specific to other OSs have been taken out. It may need to be
 
10
updated from time to time.
 
11
"""
 
12
 
 
13
python_standard_libs = [
 
14
    'aifc',
 
15
    'anydbm',
 
16
    'array',
 
17
    'asynchat',
 
18
    'asyncore',
 
19
    'atexit',
 
20
    'audioop',
 
21
    'base64',
 
22
    'BaseHTTPServer',
 
23
    'Bastion',
 
24
    'binascii',
 
25
    'binhex',
 
26
    'bisect',
 
27
    'bsddb',
 
28
    'bz2',
 
29
    'calendar',
 
30
    'cgi',
 
31
    'CGIHTTPServer',
 
32
    'cgitb',
 
33
    'chunk',
 
34
    'cmath',
 
35
    'cmd',
 
36
    'code',
 
37
    'codecs',
 
38
    'codeop',
 
39
    'collections',
 
40
    'colorsys',
 
41
    'commands',
 
42
    'compileall',
 
43
    'compiler',
 
44
    'ConfigParser',
 
45
    'contextlib',
 
46
    'Cookie',
 
47
    'cookielib',
 
48
    'copy',
 
49
    'copy_reg',
 
50
    'cPickle',
 
51
    'cProfile',
 
52
    'crypt',
 
53
    'cStringIO',
 
54
    'csv',
 
55
    'ctypes',
 
56
    'curses',
 
57
    'datetime',
 
58
    'dbhash',
 
59
    'dbm',
 
60
    'decimal',
 
61
    'difflib',
 
62
    'dircache',
 
63
    'dis',
 
64
    'distutils',
 
65
    'dl',
 
66
    'doctest',
 
67
    'DocXMLRPCServer',
 
68
    'dumbdbm',
 
69
    'dummy_thread',
 
70
    'dummy_threading',
 
71
    'email',
 
72
    'encodings',
 
73
    'errno',
 
74
    'exceptions',
 
75
    'fcntl',
 
76
    'filecmp',
 
77
    'fileinput',
 
78
    'fnmatch',
 
79
    'formatter',
 
80
    'fpectl',
 
81
    'fpformat',
 
82
    'ftplib',
 
83
    'functools',
 
84
    'gc',
 
85
    'gdbm',
 
86
    'getopt',
 
87
    'getpass',
 
88
    'gettext',
 
89
    'glob',
 
90
    'gopherlib',
 
91
    'grp',
 
92
    'gzip',
 
93
    'hashlib',
 
94
    'heapq',
 
95
    'hmac',
 
96
    'hotshot',
 
97
    'htmlentitydefs',
 
98
    'htmllib',
 
99
    'HTMLParser',
 
100
    'httplib',
 
101
    'imageop',
 
102
    'imaplib',
 
103
    'imghdr',
 
104
    'imp',
 
105
    'inspect',
 
106
    'itertools',
 
107
    'keyword',
 
108
    'linecache',
 
109
    'locale',
 
110
    'logging',
 
111
    'mailbox',
 
112
    'mailcap',
 
113
    'marshal',
 
114
    'math',
 
115
    'md5',
 
116
    'mhlib',
 
117
    'mimetools',
 
118
    'mimetypes',
 
119
    'MimeWriter',
 
120
    'mimify',
 
121
    'mmap',
 
122
    'modulefinder',
 
123
    'multifile',
 
124
    'mutex',
 
125
    'netrc',
 
126
    'new',
 
127
    'nis',
 
128
    'nntplib',
 
129
    'operator',
 
130
    'optparse',
 
131
    'os',
 
132
    'ossaudiodev',
 
133
    'parser',
 
134
    'pdb',
 
135
    'pickle',
 
136
    'pickletools',
 
137
    'pipes',
 
138
    'pkgutil',
 
139
    'platform',
 
140
    'popen2',
 
141
    'poplib',
 
142
    'posix',
 
143
    'posixfile',
 
144
    'pprint',
 
145
    'profile',
 
146
    'pstats',
 
147
    'pty',
 
148
    'pwd',
 
149
    'py_compile',
 
150
    'pyclbr',
 
151
    'pydoc',
 
152
    'Queue',
 
153
    'quopri',
 
154
    'random',
 
155
    're',
 
156
    'readline',
 
157
    'repr',
 
158
    'resource',
 
159
    'rexec',
 
160
    'rfc822',
 
161
    'rgbimg',
 
162
    'rlcompleter',
 
163
    'robotparser',
 
164
    'runpy',
 
165
    'sched',
 
166
    'ScrolledText',
 
167
    'select',
 
168
    'sets',
 
169
    'sgmllib',
 
170
    'sha',
 
171
    'shelve',
 
172
    'shlex',
 
173
    'shutil',
 
174
    'signal',
 
175
    'SimpleHTTPServer',
 
176
    'SimpleXMLRPCServer',
 
177
    'site',
 
178
    'smtpd',
 
179
    'smtplib',
 
180
    'sndhdr',
 
181
    'socket',
 
182
    'SocketServer',
 
183
    'spwd',
 
184
    'sqlite3',
 
185
    'stat',
 
186
    'statvfs',
 
187
    'string',
 
188
    'StringIO',
 
189
    'stringprep',
 
190
    'struct',
 
191
    'subprocess',
 
192
    'sunau',
 
193
    'symbol',
 
194
    'sys',
 
195
    'syslog',
 
196
    'tabnanny',
 
197
    'tarfile',
 
198
    'telnetlib',
 
199
    'tempfile',
 
200
    'termios',
 
201
    'test.test_support',
 
202
    'test',
 
203
    'textwrap',
 
204
    'thread',
 
205
    'threading',
 
206
    'time',
 
207
    'timeit',
 
208
    'Tix',
 
209
    'Tkinter',
 
210
    'token',
 
211
    'tokenize',
 
212
    'trace',
 
213
    'traceback',
 
214
    'tty',
 
215
    'turtle',
 
216
    'types',
 
217
    'unicodedata',
 
218
    'unittest',
 
219
    'urllib2',
 
220
    'urllib',
 
221
    'urlparse',
 
222
    'user',
 
223
    'UserDict',
 
224
    'UserList',
 
225
    'UserString',
 
226
    'uu',
 
227
    'uuid',
 
228
    'warnings',
 
229
    'wave',
 
230
    'weakref',
 
231
    'webbrowser',
 
232
    'whichdb',
 
233
    'wsgiref',
 
234
    'xdrlib',
 
235
    'xml',
 
236
    'xmlrpclib',
 
237
    'zipfile',
 
238
    'zipimport',
 
239
    'zlib',
 
240
    ]