uninstall.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/uninstall.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/uninstall.py	Sat Jan 02 15:11:35 2010 +0000
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 # Copyright (c) 2002-2009 Detlev Offenbach <detlev@die-offenbachs.de>
@@ -15,7 +15,7 @@
 import glob
 import distutils.sysconfig
 
-from eric4config import getConfig
+from .eric4config import getConfig
 
 # Define the globals.
 progName = None
@@ -28,10 +28,10 @@
     """
     global progName
 
-    print "Usage:"
-    print "    %s [-h]" % (progName)
-    print "where:"
-    print "    -h             display this help message"
+    print("Usage:")
+    print("    %s [-h]" % (progName))
+    print("where:")
+    print("    -h             display this help message")
 
     sys.exit(rcode)
 
@@ -132,7 +132,7 @@
     
     try:
         uninstallEric()
-    except IOError, msg:
+    except IOError as msg:
         sys.stderr.write('IOError: %s\nTry uninstall as root.\n' % msg)
     
     
@@ -142,8 +142,7 @@
     except SystemExit:
         raise
     except:
-        print \
-"""An internal error occured.  Please report all the output of the program,
+        print("""An internal error occured.  Please report all the output of the program,
 including the following traceback, to eric5-bugs@eric-ide.python-projects.org.
-"""
+""")
         raise

eric ide

mercurial