summaryrefslogtreecommitdiff
path: root/Lib/lib-old/repr.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-16 06:37:57 +0000
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-16 06:37:57 +0000
commit95d97c7390beb72083dac5a801cadfb4c1379fe5 (patch)
treec8d721828711e47fa02081e2a71768ad68799fd7 /Lib/lib-old/repr.py
parent5915a4dcfebf74d0a2c99848ede619f5bf7d2899 (diff)
downloadcpython-git-95d97c7390beb72083dac5a801cadfb4c1379fe5.tar.gz
Renamed the repr module to reprlib.
Added stub module for repr.
Diffstat (limited to 'Lib/lib-old/repr.py')
-rw-r--r--Lib/lib-old/repr.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/lib-old/repr.py b/Lib/lib-old/repr.py
new file mode 100644
index 0000000000..daa21547a8
--- /dev/null
+++ b/Lib/lib-old/repr.py
@@ -0,0 +1,7 @@
+from warnings import warnpy3k
+warnpy3k("The repr module has been renamed to 'reprlib' in Python 3.0",
+ stacklevel=2)
+
+from sys import modules
+import reprlib
+modules[__name__] = repr