summaryrefslogtreecommitdiffstats
path: root/Lib/fpformat.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-10 22:11:45 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-10 22:11:45 (GMT)
commitfe5985188d76b56e1c61736055f2e8854e44d6cd (patch)
tree0da55d00c96acd3238a8535819c55bffeeed8f4a /Lib/fpformat.py
parente35a3a1d6b5c8a48f98bd8be529a0a24e1cb151f (diff)
downloadcpython-fe5985188d76b56e1c61736055f2e8854e44d6cd.zip
cpython-fe5985188d76b56e1c61736055f2e8854e44d6cd.tar.gz
cpython-fe5985188d76b56e1c61736055f2e8854e44d6cd.tar.bz2
Deprecate the fpformat module for removal in 3.0.
Diffstat (limited to 'Lib/fpformat.py')
-rw-r--r--Lib/fpformat.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/fpformat.py b/Lib/fpformat.py
index 0ae86a9..71cbb25 100644
--- a/Lib/fpformat.py
+++ b/Lib/fpformat.py
@@ -10,6 +10,9 @@ Parameters:
x: number to be formatted; or a string resembling a number
digits_behind: number of digits behind the decimal point
"""
+from warnings import warnpy3k
+warnpy3k("the fpformat module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
import re