py3: tools: 2to3

This commit is contained in:
looooo
2018-05-18 16:01:34 +02:00
committed by wmayer
parent 47313f0f20
commit 64002161d6
21 changed files with 491 additions and 488 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/python
print "Fetching download statistics from github..."
print("Fetching download statistics from github...")
import requests
r=requests.get('https://api.github.com/repos/FreeCAD/FreeCAD/releases')
@@ -8,4 +8,4 @@ myobj = r.json()
for p in myobj:
if "assets" in p:
for asset in p['assets']:
print (asset['name'] + ": " + str(asset['download_count']) + " downloads")
print((asset['name'] + ": " + str(asset['download_count']) + " downloads"))