We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In config.py:578:
if fake_args: self.cliargs = cliparser.parse_args(fake_args) else: self.cliargs = cliparser.parse_args()
where fake_args is None by default, however from the documentation of the arguments parser:
https://docs.python.org/2/library/argparse.html#argparse.ArgumentParser.parse_args
ArgumentParser.parse_args(args=None, namespace=None)
So calling directly to the following (without conditions):
self.cliargs = cliparser.parse_args(fake_args)
Should be the same.
Also the comparisons with 'None' should be carried out with the 'is' statement:
if fake_args is not None:
I hope it can helps!
The text was updated successfully, but these errors were encountered:
Yes, of course all your points are rigth. This is an example of my non-pythonic style... unfortunately (or fortunately) I am a Fortran poor man :-)
Thank you Pepe!
Sorry, something went wrong.
Done
No branches or pull requests
In config.py:578:
where fake_args is None by default, however from the documentation of the arguments parser:
https://docs.python.org/2/library/argparse.html#argparse.ArgumentParser.parse_args
So calling directly to the following (without conditions):
Should be the same.
Also the comparisons with 'None' should be carried out with the 'is' statement:
I hope it can helps!
The text was updated successfully, but these errors were encountered: