summaryrefslogtreecommitdiff
path: root/docutils/test/DocutilsTestSupport.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
commitfac4b8563b8d33b271290d538b05376daf48149d (patch)
tree77f05a41f15c946d5f4ee44bfa6e7191f092af58 /docutils/test/DocutilsTestSupport.py
parent4dc3c0cc60a1905b4f38393da4b47488c6cfa65e (diff)
downloaddocutils-fac4b8563b8d33b271290d538b05376daf48149d.tar.gz
Replace all has_key with the in operator.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5607 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/DocutilsTestSupport.py')
-rw-r--r--docutils/test/DocutilsTestSupport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/test/DocutilsTestSupport.py b/docutils/test/DocutilsTestSupport.py
index 24858c624..ce67ab262 100644
--- a/docutils/test/DocutilsTestSupport.py
+++ b/docutils/test/DocutilsTestSupport.py
@@ -668,7 +668,7 @@ class WriterPublishTestCase(CustomTestCase, docutils.SettingsSpec):
writer_name = '' # set in subclasses or constructor
def __init__(self, *args, **kwargs):
- if kwargs.has_key('writer_name'):
+ if 'writer_name' in kwargs:
self.writer_name = kwargs['writer_name']
del kwargs['writer_name']
CustomTestCase.__init__(self, *args, **kwargs)