File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -143,16 +143,14 @@ def write_legacy_pickles():
143143 except :
144144 import pickle
145145
146- sys_version = version = pandas .__version__
147- if len (sys .argv ) < 2 :
148- exit ("{0} <version> <output_dir>" . format ( sys . argv [ 0 ]) )
146+ version = pandas .__version__
147+ if len (sys .argv ) != 2 :
148+ exit ("Specify output directory: generate_legacy_pickles.py <output_dir>" )
149149
150- version = str (sys .argv [1 ])
151- output_dir = str (sys .argv [2 ])
150+ output_dir = str (sys .argv [1 ])
152151
153152 print ("This script generates a pickle file for the current arch, system, and python version" )
154- print (" system version: {0}" .format (sys_version ))
155- print (" output version: {0}" .format (version ))
153+ print (" pandas version: {0}" .format (version ))
156154 print (" output dir : {0}" .format (output_dir ))
157155
158156 # construct a reasonable platform name
You can’t perform that action at this time.
0 commit comments