Skip to content

Commit

Permalink
Fix hasattr
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Nov 18, 2014
1 parent 6e87460 commit f56b598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plone/recipe/codeanalysis/deprecated_aliases.py
Expand Up @@ -66,9 +66,9 @@ def _code_analysis_deprecated_aliases_lines_parser(lines, file_path):
if line.find('# noqa') != -1:
continue

if hasattr(deprecated_aliases, 'iteritems'):
try:
deprecated_aliases_iteritems = deprecated_aliases.iteritems()
else:
except AttributeError:
deprecated_aliases_iteritems = deprecated_aliases.items() # PY3
for newer_version, old_alias in deprecated_aliases_iteritems:
for alias in old_alias:
Expand Down

0 comments on commit f56b598

Please sign in to comment.