summaryrefslogtreecommitdiff
path: root/docs/_ext/djangodocs.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-26 14:31:52 -0600
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-26 14:32:14 -0600
commitac17525039b127e8712c402d0b09ffa864c37ef5 (patch)
treef3e77288364aea3b486215084d6f11448f6845ba /docs/_ext/djangodocs.py
parentbb5ab908cc8ab71ddb619daa72a9aa5081af5f8b (diff)
downloaddjango-ac17525039b127e8712c402d0b09ffa864c37ef5.tar.gz
Replace use of dict.has_key with `key in dict`
Diffstat (limited to 'docs/_ext/djangodocs.py')
-rw-r--r--docs/_ext/djangodocs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 6a9659171d..8946eb063b 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -99,11 +99,11 @@ def visit_snippet(self, node):
linenos = node.rawsource.count('\n') >= self.highlightlinenothreshold - 1
fname = node['filename']
highlight_args = node.get('highlight_args', {})
- if node.has_key('language'):
+ if 'language' in node:
# code-block directives
lang = node['language']
highlight_args['force'] = True
- if node.has_key('linenos'):
+ if 'linenos' in node:
linenos = node['linenos']
def warner(msg):