Skip to content

Commit

Permalink
Make the invoke tasks run on Python 2.x as well as Python 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Aug 9, 2014
1 parent 8de22d1 commit 44aec39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tasks/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def pep440(cached=False):
bar = progress.bar.ShadyBar("Fetching Versions")
client = xmlrpc_client.Server("https://pypi.python.org/pypi")

data = {
project: client.package_releases(project, True)
data = dict([
(project, client.package_releases(project, True))
for project in bar.iter(client.list_packages())
}
])

os.makedirs(os.path.dirname(cache_path), exist_ok=True)
with open(cache_path, "w") as fp:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ basepython = python2.6
deps =
flake8
pep8-naming
commands = flake8 . --exclude tasks/*,.tox,*.egg
commands = flake8 .

[flake8]
exclude = .tox,*.egg
Expand Down

0 comments on commit 44aec39

Please sign in to comment.