diff options
Diffstat (limited to 'parsers/rst/states.py')
-rw-r--r-- | parsers/rst/states.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/rst/states.py b/parsers/rst/states.py index eabc179ef..b20c9f4d9 100644 --- a/parsers/rst/states.py +++ b/parsers/rst/states.py @@ -901,8 +901,8 @@ class Inliner: return self.reference(match, lineno, anonymous=1) def standalone_uri(self, match, lineno): - if not match.group('scheme') or urischemes.schemes.has_key( - match.group('scheme').lower()): + if (not match.group('scheme') + or match.group('scheme').lower() in urischemes.schemes): if match.group('email'): addscheme = 'mailto:' else: |