Make print statements Python 3 compatible

This commit is contained in:
Jelle van der Waa 2017-05-28 16:45:06 +02:00
parent d0428979d8
commit 3d1a8302ba
2 changed files with 4 additions and 4 deletions

View File

@ -64,9 +64,9 @@ def compare_versions(self, ver1, oper, ver2):
def main():
api = AlpmAPI()
print api.version()
print api.vercmp(1, 2)
print api.compare_versions(1, '<', 2)
print(api.version())
print(api.vercmp(1, 2))
print(api.compare_versions(1, '<', 2))
if __name__ == '__main__':

View File

@ -127,7 +127,7 @@
def show_urls(urllist=urlpatterns, depth=0):
for entry in urllist:
print " " * depth, entry.regex.pattern
print(" " * depth, entry.regex.pattern)
if hasattr(entry, 'url_patterns'):
show_urls(entry.url_patterns, depth + 1)