# Python 3 standard library modules that are allowed in calclets

# The following is a complete list of modules in the standard library,
# obtained from an installation of Python 3.3. Only modules starting
# with an underscore were removed. Forbidden modules are commented out.
# The selection needs a more careful revision.

allowed_modules = [
"abc",
"aifc",
#"antigravity",
#"argparse",
"ast",
#"asynchat",
#"asyncore",
"base64",
"bdb",
"binhex",
"bisect",
"bz2",
#"cProfile",
"calendar",
#"cgi",
#"cgitb",
"chunk",
"cmd",
"code",
"codecs",
"codeop",
"collections",
"colorsys",
"compileall",
#"concurrent",
"configparser",
"contextlib",
"copy",
"copyreg",
"crypt",
"csv",
#"ctypes",
#"curses",
"datetime",
#"dbm",
"decimal",
"difflib",
#"dis",
#"distutils",
#"doctest",
#"dummy_threading",
#"email",
"encodings",
"filecmp",
"fileinput",
"fnmatch",
"formatter",
"fractions",
#"ftplib",
"functools",
#"genericpath",
#"getopt",
#"getpass",
"gettext",
#"glob",
"gzip",
"hashlib",
"heapq",
"hmac",
"html",
#"http",
#"idlelib",
#"imaplib",
"imghdr",
#"imp",
#"importlib",
"inspect",
#"io",
#"ipaddress",
"json",
"keyword",
"lib2to3",
"linecache",
"locale",
"logging",
"lzma",
#"macpath",
#"macurl2path",
#"mailbox",
#"mailcap",
"mimetypes",
#"modulefinder",
#"multiprocessing",
#"netrc",
#"nntplib",
#"ntpath",
#"nturl2path",
"numbers",
"opcode",
#"optparse",
"os",
"os2emxpath",
#"pdb",
"pickle",
"pickletools",
"pipes",
#"pkgutil",
"plistlib",
"poplib",
"posixpath",
"pprint",
"profile",
"pstats",
"pty",
"py_compile",
"pyclbr",
"pydoc",
"pydoc_data",
"queue",
"quopri",
"random",
"re",
"reprlib",
"rlcompleter",
"runpy",
"sched",
"shelve",
"shlex",
"shutil",
#"site",
#"smtpd",
#"smtplib",
#"sndhdr",
#"socket",
#"socketserver",
#"sqlite3",
"sre_compile",
"sre_constants",
"sre_parse",
#"ssl",
#"stat",
"string",
"stringprep",
"struct",
#"subprocess",
#"sunau",
"symbol",
"symtable",
"sysconfig",
"tabnanny",
"tarfile",
#"telnetlib",
#"tempfile",
"test",
"textwrap",
#"this",
#"threading",
"timeit",
#"tkinter",
"token",
"tokenize",
"trace",
#"traceback",
"tty",
"turtle",
"turtledemo",
"types",
#"unittest",
#"urllib",
"uu",
#"uuid",
"venv",
"warnings",
#"wave",
"weakref",
#"webbrowser",
#"wsgiref",
"xdrlib",
"xml",
"xmlrpc",
"zipfile",

## extension modules

"array",
"atexit",
#"audioop",
"binascii",
"bz2",
"cmath",
"crypt",
#"fcntl",
#"grp",
"math",
#"mmap",
#"nis",
"parser",
"pyexpat",
#"readline",
#"resource",
#"select",
#"syslog",
#"termios",
"time",
"unicodedata",
"zlib",
]
