install-i18n.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1509
c0b5e693b0eb
--- a/install-i18n.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/install-i18n.py	Fri Mar 11 16:51:57 2011 +0100
@@ -22,6 +22,7 @@
     print("The eric5 IDE doesn't seem to be installed. Aborting.")
     sys.exit(1)
     
+
 def getConfigDir():
     """
     Global function to get the name of the directory storing the config data.
@@ -47,7 +48,8 @@
 configDir = getConfigDir()
 privateInstall = False
 
-def usage(rcode = 2):
+
+def usage(rcode=2):
     """
     Display a usage message and exit.
 
@@ -64,6 +66,7 @@
 
     sys.exit(rcode)
 
+
 def installTranslations():
     """
     Install the translation files into the right place.
@@ -85,6 +88,7 @@
         sys.stderr.write(
             'OSError: {0}\nTry install-i18n with admin rights.\n'.format(msg))
     
+
 def main(argv):
     """
     The main function of the script.
@@ -98,7 +102,7 @@
     progName = os.path.basename(argv[0])
 
     try:
-        optlist, args = getopt.getopt(argv[1:],"hp")
+        optlist, args = getopt.getopt(argv[1:], "hp")
     except getopt.GetoptError:
         usage()
 

eric ide

mercurial