@@ -74,21 +74,21 @@ def _make_path_to_file(file_):
7474
7575
7676def start_simpack (containing_folder , name ):
77- """
77+ '''
7878 Create a new simpack.
7979
8080 This is the main function of this module. `containing_folder` is the folder
8181 in which the simpack folder should be created. `name` is the name of the
8282 new simpack, which will also be the name of its folder.
83- """
83+ '''
8484
8585 if not re .search (r'^[_a-zA-Z]\w*$' , name ): # If not valid folder name.
8686 # Provide a smart error message, depending on the error.
8787 if not re .search (r'^[_a-zA-Z]' , name ):
8888 message = 'make sure the name begins with a letter or underscore'
8989 else :
9090 message = 'use only numbers, letters and underscores'
91- raise Exception (" %r is not a valid simpack name. Please %s." %
91+ raise Exception (' %r is not a valid simpack name. Please %s.' %
9292 (name , message ))
9393 folder = os .path .join (containing_folder , name )
9494
@@ -123,14 +123,14 @@ def start_simpack(containing_folder, name):
123123 _make_writeable (dest_file )
124124 except Exception :
125125 pass
126- print (" `%s` simpack created successfully! Explore the `%s` folder and "
127- " start filling in the contents of your new simpack." % (name , name ))
126+ print (' `%s` simpack created successfully! Explore the `%s` folder and '
127+ ' start filling in the contents of your new simpack.' % (name , name ))
128128
129129
130130def _make_writeable (filename ):
131- """
131+ '''
132132 Make sure that the file is writeable. Useful if our source is read-only.
133- """
133+ '''
134134 import stat
135135 if sys .platform .startswith ('java' ):
136136 # On Jython there is no os.access()
0 commit comments