Skip to content

Commit

Permalink
[networkbrowser] fixed evaluation order difference Py2/Py3
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Jan 18, 2021
1 parent 45847f6 commit 39ff6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkbrowser/src/AutoMount.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def sanitizeOptions(self, origOptions, mounttype=None, username=None, password=N
# and add any passed
if username or password:
options.append('username="%s"' % username)
options.append('password="%s"' % "" if password is None else password)
options.append('password="%s"' % ("" if password is None else password))

# default to utf8
if not [i for i in options if i.startswith('iocharset=')]:
Expand Down

0 comments on commit 39ff6ff

Please sign in to comment.