Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'official/master' into parse_stream
  • Loading branch information
alanjds committed Jan 15, 2018
commit 3a21f84cf23217377d14aca404a81372da2a4368
2 changes: 1 addition & 1 deletion dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def parse_dotenv(dotenv_path=None, stream=None):
k, v = k.strip(), v.strip().encode('unicode-escape').decode('ascii')

if len(v) > 0:
quoted = v[0] == v[len(v) - 1] in ['"', "'"]
quoted = v[0] == v[-1] in ['"', "'"]

if quoted:
v = decode_escaped(v[1:-1])
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.