summaryrefslogtreecommitdiff
path: root/readers/__init__.py
diff options
context:
space:
mode:
authorstrank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-07-23 19:18:19 +0000
committerstrank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-07-23 19:18:19 +0000
commit909813ea5e93a2ce8809737f60791560b33c1e85 (patch)
tree8d6fc47c20f6d73499d1b8f1d0d7e4fd2deefdfc /readers/__init__.py
parent537774fff163c1bbb528f4ac3c92ce42feacb33d (diff)
downloaddocutils-abolish-userstring.tar.gz
Replace all has_key with the in operator.abolish-userstring
git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/abolish-userstring@5607 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'readers/__init__.py')
-rw-r--r--readers/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/readers/__init__.py b/readers/__init__.py
index 74db893f9..a28248f70 100644
--- a/readers/__init__.py
+++ b/readers/__init__.py
@@ -101,7 +101,7 @@ _reader_aliases = {}
def get_reader_class(reader_name):
"""Return the Reader class from the `reader_name` module."""
reader_name = reader_name.lower()
- if _reader_aliases.has_key(reader_name):
+ if reader_name in _reader_aliases:
reader_name = _reader_aliases[reader_name]
module = __import__(reader_name, globals(), locals())
return module.Reader