Python 3 Start

This commit is contained in:
Luke Rogers 2014-03-06 11:45:00 +13:00
parent 9f029c8ceb
commit 141fe8d80c
67 changed files with 264 additions and 274 deletions

View file

@ -8,7 +8,7 @@ import signal
# check python version
if sys.version_info < (2, 7, 0):
print "CloudBot requires Python 2.7 or newer."
print("CloudBot requires Python 2.7 or newer.")
sys.exit(1)
# set up enviroment
@ -18,7 +18,7 @@ os.chdir(sys.path[0] or '.') # do stuff relative to the install directory
if os.path.exists(os.path.abspath('lib')):
sys.path += ['lib']
print 'CloudBot2 <http://git.io/cloudbotirc>'
print('CloudBot2 <http://git.io/cloudbotirc>')
def exit_gracefully(signum, frame):
# this doesn't really work that well