summaryrefslogtreecommitdiffstats
path: root/Lib/util.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-06-10 21:18:02 (GMT)
committerFred Drake <fdrake@acm.org>1999-06-10 21:18:02 (GMT)
commit2b755b88c017c5cd704530331de4f185de294d40 (patch)
treeaf480112d683931df5b6656810761398497f0e08 /Lib/util.py
parent4d5c87ba119d0259cbe75eda6d36a11140b52eef (diff)
downloadcpython-2b755b88c017c5cd704530331de4f185de294d40.zip
cpython-2b755b88c017c5cd704530331de4f185de294d40.tar.gz
cpython-2b755b88c017c5cd704530331de4f185de294d40.tar.bz2
Relocating file to Lib/lib-old.
Diffstat (limited to 'Lib/util.py')
-rw-r--r--Lib/util.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/Lib/util.py b/Lib/util.py
deleted file mode 100644
index 6cb1433..0000000
--- a/Lib/util.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Module 'util' -- some useful functions that don't fit elsewhere
-
-# NB: These are now built-in functions, but this module is provided
-# for compatibility. Don't use in new programs unless you need backward
-# compatibility (i.e. need to run with old interpreters).
-
-
-# Remove an item from a list.
-# No complaints if it isn't in the list at all.
-# If it occurs more than once, remove the first occurrence.
-#
-def remove(item, list):
- if item in list: list.remove(item)
-
-
-# Return a string containing a file's contents.
-#
-def readfile(fn):
- return readopenfile(open(fn, 'r'))
-
-
-# Read an open file until EOF.
-#
-def readopenfile(fp):
- return fp.read()