Skip to content

Commit

Permalink
try to fix env value has =
Browse files Browse the repository at this point in the history
be default split has maxsplit =-1, then there is no limit on the number of splits (all possible splits are made).
By setting maxsplit  = 1, we can use = in env value
  • Loading branch information
mervynzhang authored May 15, 2017
1 parent f12ddfc commit d211ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion j2cli3/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _parse_env(data_string):
(
list(map(
strip,
line.split('=')
line.split('=',1)
))
for line in data_string.split("\n")
)
Expand Down

0 comments on commit d211ea5

Please sign in to comment.