diff options
| author | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:18:19 +0000 |
|---|---|---|
| committer | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:18:19 +0000 |
| commit | fac4b8563b8d33b271290d538b05376daf48149d (patch) | |
| tree | 77f05a41f15c946d5f4ee44bfa6e7191f092af58 /docutils/test/DocutilsTestSupport.py | |
| parent | 4dc3c0cc60a1905b4f38393da4b47488c6cfa65e (diff) | |
| download | docutils-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.py | 2 |
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) |
