Commit ac175250 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Replace use of dict.has_key with `key in dict`

parent bb5ab908
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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):