try:
f = open(LOGFILE, 'r')
except IOError as detail:
- print detail
+ print(detail)
sys.exit(1)
return f
if len(PACKAGES) == 0:
- print "No current emerge process found."
+ print("No current emerge process found.")
return 1
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------------------------------")
a = 0
for line in f:
if list_emerge_processes():
return
- print "Currently emerging:"
+ print("Currently emerging:")
for p in PACKAGES:
search_log_for_package(p)
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")
total_pretended_time = 0
\t\t\t (needs matlibplot installed for this to work)"""
- print usage
+ print(usage)
sys.exit(0)