summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris West <solo-github@goeswhere.com>2017-11-03 09:19:45 +0000
committerGitHub <noreply@github.com>2017-11-03 09:19:45 +0000
commit0021ba710d7b12f52353e161402377cb5f336e72 (patch)
tree40c533683fe3a4fc8f98e1e76ba9e33c51eff74b
parentd2830289f1c4863bfb2ab03919190d8811f1209f (diff)
parent8953d5d8e32a72905bce94aad9c2604c8247d74e (diff)
downloadghetto-json-0021ba710d7b12f52353e161402377cb5f336e72.tar.gz
ghetto-json-0021ba710d7b12f52353e161402377cb5f336e72.tar.bz2
ghetto-json-0021ba710d7b12f52353e161402377cb5f336e72.tar.xz
ghetto-json-0021ba710d7b12f52353e161402377cb5f336e72.zip
Merge pull request #8 from bryanlarsen/patch-1
Fix crash when value contains `=`
-rwxr-xr-xghetto_json2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghetto_json b/ghetto_json
index 8d9e5bd..ebc3d51 100755
--- a/ghetto_json
+++ b/ghetto_json
@@ -11,7 +11,7 @@ except ImportError:
json_load = json.load
def main(params_list):
- params = dict(x.split("=", 2) for x in params_list)
+ params = dict(x.split("=", 1) for x in params_list)
path = params.pop('path')
changed = False