summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/util.py')
-rw-r--r--Lib/idlelib/util.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/Lib/idlelib/util.py b/Lib/idlelib/util.py
new file mode 100644
index 0000000..5480219
--- /dev/null
+++ b/Lib/idlelib/util.py
@@ -0,0 +1,22 @@
+"""
+Idlelib objects with no external idlelib dependencies
+which are needed in more than one idlelib module.
+
+They are included here because
+ a) they don't particularly belong elsewhere; or
+ b) because inclusion here simplifies the idlelib dependency graph.
+
+TODO:
+ * Python versions (editor and help_about),
+ * tk version and patchlevel (pyshell, help_about, maxos?, editor?),
+ * std streams (pyshell, run),
+ * warning stuff (pyshell, run).
+"""
+from os import path
+
+# .pyw is for Windows; .pyi is for stub files.
+py_extensions = ('.py', '.pyw', '.pyi') # Order needed for open/save dialogs.
+
+if __name__ == '__main__':
+ from unittest import main
+ main('idlelib.idle_test.test_util', verbosity=2)