-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
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
add filter for boolean values in dict2string so "no_rot=True" works (issue #183) #184
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jswhit, I think not including the option if false would be better.
Also, what about if they use None for the value? |
handles False and None now (None is treated like False, is that correct?) |
I was thinking ...
if value is None or value is True:
pjargs.append("+" + key + " ")
elif value is False:
pass
... |
Just updated the code ^^ |
Or None might be interpreted as don't have a no_rot flag added to the string.... |
It seems |
OK, changed it to your suggestion |
Sounds good, thanks for fixing this 👍 |
Thank you for this quick respond to my issue. |
No description provided.