Skip to content

Commit

Permalink
Merge pull request docker-archive#290 from dmcgowan/master
Browse files Browse the repository at this point in the history
Fix python 2.6 syntax error for rhel/centos deployments
  • Loading branch information
samalba committed Mar 16, 2014
2 parents 570c35b + 8bb3400 commit 5e9ed97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions registry/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def _get_tags(namespace, repository):
logger.debug("[get_tags] namespace={0}; repository={1}".format(namespace,
repository))
try:
data = {tag_name: tag_content
for tag_name, tag_content
in get_tags(namespace=namespace, repository=repository)}
data = dict((tag_name, tag_content)
for tag_name, tag_content
in get_tags(namespace=namespace, repository=repository))
except OSError:
return toolkit.api_error('Repository not found', 404)
return toolkit.response(data)
Expand Down

0 comments on commit 5e9ed97

Please sign in to comment.