fish-shell/share
Kurtis Rader 7bb3bf7c74 fix regression from commit 20bcbcc2
There were two places in the code that used the anti-pattern of
returning True on success else an error message. In python you should
always be able to replace `if x == True:` with just `if x:`. Which is
what the lint tool recommended. Unfortunately I didn't notice how the
return value was being used. This fixes that by changing the two
affected functions to return an error message or None on success.

This also adds `from __future__ import print_function` since the code
uses the `print(msg)` function form rather than the `print msg`
statement form. The former works by accident on python2 because the
parens are interpreted as creating parenthesized expression that
devolves to the single string inside the parens. So while the future
import isn't strictly speaking necessary it will help avoid mistakes in
the future if more complex `print()` calls are added.

Partial fix for #3620
2016-12-04 16:01:32 -08:00
..
completions correct option for bc completion 2016-12-04 00:22:31 +01:00
functions enable make style-all doing fish scripts 2016-12-03 20:39:32 -08:00
groff workaround broken groff man page config 2016-10-19 13:43:04 -07:00
tools fix regression from commit 20bcbcc2 2016-12-04 16:01:32 -08:00
__fish_build_paths.fish.in Rename "snippets" to "conf" internally, and document them as snippets 2016-04-06 09:33:09 +08:00
config.fish enable make style-all doing fish scripts 2016-12-03 20:39:32 -08:00