1
0

Python2 for pyupdatesd

This commit is contained in:
Noah 2019-12-05 15:54:17 -08:00
parent 883e69b135
commit 3380d032e9

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
""" """
pyupdatesd: A simple yum update checker. pyupdatesd: A simple yum update checker.
@ -73,18 +73,18 @@ try:
'display=' 'display='
]) ])
except: except:
print "Unrecognized options given, try " + sys.argv[0] + " --help" print("Unrecognized options given, try " + sys.argv[0] + " --help")
exit(1) exit(1)
debug = False debug = False
testing = False testing = False
def say(*message): def say(*message):
if debug: if debug:
print ' '.join(map(lambda x: str(x), message)) print(' '.join(map(lambda x: str(x), message)))
def usage(): def usage():
print "Usage: " + sys.argv[0] + " [--display :0.0 --help --debug --testing]" print("Usage: " + sys.argv[0] + " [--display :0.0 --help --debug --testing]")
print "Use --testing to force the script to show the notification icon." print("Use --testing to force the script to show the notification icon.")
exit(1) exit(1)
# Parse the options # Parse the options