summaryrefslogtreecommitdiffstats
path: root/Lib/warnings.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-06 06:57:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-02-06 06:57:08 (GMT)
commitdbecd93b7203cd187c1978de1207c29d3a9a686c (patch)
treeabb7331791de7b8e85208195e0c948a76cf77b67 /Lib/warnings.py
parent07ead1731850a9f1bd353b9330341309251099b6 (diff)
downloadcpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.zip
cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.gz
cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.bz2
Replace list of constants with tuples of constants.
Diffstat (limited to 'Lib/warnings.py')
-rw-r--r--Lib/warnings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/warnings.py b/Lib/warnings.py
index 06d7685..87d3e29 100644
--- a/Lib/warnings.py
+++ b/Lib/warnings.py
@@ -216,7 +216,7 @@ def _getaction(action):
if not action:
return "default"
if action == "all": return "always" # Alias
- for a in ['default', 'always', 'ignore', 'module', 'once', 'error']:
+ for a in ('default', 'always', 'ignore', 'module', 'once', 'error'):
if a.startswith(action):
return a
raise _OptionError("invalid action: %r" % (action,))