Skip to content

Commit

Permalink
Fix Python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Dec 15, 2017
1 parent 9d94d33 commit d9660f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -8,7 +8,7 @@ Alterações
[hvelarde]

- Adiciona suporte para Python 3 e dependencia com o future.
[caduvieira]
[caduvieira, hvelarde]

- Remove suporte para Python 2.6 e Plone 4.2.
[hvelarde]
Expand Down
4 changes: 2 additions & 2 deletions src/brasil/gov/vcge/vocabulary.py
Expand Up @@ -33,9 +33,9 @@ class VCGEVocabulary(object):
def __call__(self, context):
items = []
termos = load_skos()
items = termos.items()
# XXX: calling .items() in Python 2 is inefficient
items = [SimpleTerm(key, key, value['title'])
for (key, value) in items]
for (key, value) in termos.items()]
return SimpleVocabulary(items)


Expand Down

0 comments on commit d9660f8

Please sign in to comment.