]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Python 3 compatibility improvement (argparse arguments)
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Wed, 21 Jun 2017 13:50:00 +0000 (15:50 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Wed, 21 Jun 2017 13:50:00 +0000 (15:50 +0200)
bin/AdaoYacsSchemaCreator.py

index c66e3f136dc7b726fc0f655779cedd990d9f69c4..8720d77c203a87cffe37e1e3c40faf14fe2b9543 100644 (file)
@@ -47,8 +47,7 @@ except:
 # Parse arguments
 from argparse import ArgumentParser
 usage = "usage: %(prog)s [options] config_file yacs_schema_filename"
-version="%(prog)s 0.1"
-my_parser = ArgumentParser(usage=usage, version=version)
+my_parser = ArgumentParser(usage=usage)
 my_parser.add_argument('config_file')
 my_parser.add_argument('yacs_schema_filename')
 args = my_parser.parse_args()