fish-shell/share/tools/web_config
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
..
js fish_config: fix binding filter regression (#3327) 2016-08-24 01:30:33 -07:00
partials fish_config: group bindings by command, show raw binding commands on click 2016-08-23 17:10:30 +08:00
sample_prompts lint: fish_indent all sample prompts 2016-11-01 19:19:45 -07:00
delete.png Lossless recompress of images with pngcrush+zopfli 2016-06-18 10:03:26 -07:00
favicon.png Add favicon for web config 2015-07-12 15:06:56 -07:00
fishconfig.css fish_config: group bindings by command, show raw binding commands on click 2016-08-23 17:10:30 +08:00
index.html Add favicon for web config 2015-07-12 15:06:56 -07:00
webconfig.py fix regression from commit 20bcbcc2 2016-12-04 16:01:32 -08:00