Make print statements Python 3 compatible
This commit is contained in:
parent
d0428979d8
commit
3d1a8302ba
@ -64,9 +64,9 @@ def compare_versions(self, ver1, oper, ver2):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
api = AlpmAPI()
|
api = AlpmAPI()
|
||||||
print api.version()
|
print(api.version())
|
||||||
print api.vercmp(1, 2)
|
print(api.vercmp(1, 2))
|
||||||
print api.compare_versions(1, '<', 2)
|
print(api.compare_versions(1, '<', 2))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
2
urls.py
2
urls.py
@ -127,7 +127,7 @@
|
|||||||
|
|
||||||
def show_urls(urllist=urlpatterns, depth=0):
|
def show_urls(urllist=urlpatterns, depth=0):
|
||||||
for entry in urllist:
|
for entry in urllist:
|
||||||
print " " * depth, entry.regex.pattern
|
print(" " * depth, entry.regex.pattern)
|
||||||
if hasattr(entry, 'url_patterns'):
|
if hasattr(entry, 'url_patterns'):
|
||||||
show_urls(entry.url_patterns, depth + 1)
|
show_urls(entry.url_patterns, depth + 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user