summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-10-21 06:00:24 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-10-21 06:00:24 (GMT)
commit1e8659b963ca6076a5d643da67567af7ae3bdcc6 (patch)
treed32d74632a38e8ecff88ed10d045029f91d8450c /Lib
parent57071ce545f031e986cb6b2090340bae33d042ec (diff)
downloadcpython-1e8659b963ca6076a5d643da67567af7ae3bdcc6.zip
cpython-1e8659b963ca6076a5d643da67567af7ae3bdcc6.tar.gz
cpython-1e8659b963ca6076a5d643da67567af7ae3bdcc6.tar.bz2
Don't use a string exception since it's deprecated
Diffstat (limited to 'Lib')
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 24799fb..b06935e 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -64,7 +64,7 @@ _srcfile = os.path.normcase(_srcfile)
def currentframe():
"""Return the frame object for the caller's stack frame."""
try:
- raise 'catch me'
+ raise Exception
except:
return sys.exc_traceback.tb_frame.f_back