Only confilct in the scrip between python2 and python3 was the
behaviour of the print command. In python3 you can no long "print
foo", but you have to "print(foo").
try:
f = open(LOGFILE, 'r')
except IOError as detail:
try:
f = open(LOGFILE, 'r')
except IOError as detail:
- print "No current emerge process found."
+ print("No current emerge process found.")
def search_syncs():
f = open_log()
def search_syncs():
f = open_log()
- print "These emerge syncs found"
- print "\tDate Server"
- print "\t------------------------------"
+ print("These emerge syncs found")
+ print("\tDate Server")
+ print("\t------------------------------")
if list_emerge_processes():
return
if list_emerge_processes():
return
- print "Currently emerging:"
+ print("Currently emerging:")
for p in PACKAGES:
search_log_for_package(p)
for p in PACKAGES:
search_log_for_package(p)
elif status == "pretended":
list_pretended()
elif status == "pretended":
list_pretended()
- print "This is how long these packages would take to emerge"
+ print("This is how long these packages would take to emerge")
\t\t\t (needs matlibplot installed for this to work)"""
\t\t\t (needs matlibplot installed for this to work)"""