• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

theskumar / python-dotenv / 387
90%
master: 88%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 14 Nov 2018 08:21PM UTC
Jobs 5
Files 6
Run time 27s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
387

Pull #148

travis-ci

web-flow
Parse newline, UTF-8, trailing comment, backslash

This adds support for:

* multiline values (i.e. containing newlines or escaped \n), fixes #89
* backslashes in values, fixes #112
* trailing comments, fixes #141
* UTF-8 in unquoted values, fixes #147

Parsing is no longer line-based.  That's why `parse_line` was replaced
by `parse_binding`.  Thanks to the previous commit, users of
`parse_stream` don't have to deal with this change.

This supersedes a previous pull-request, #142, which would add support for
multiline values in `Dotenv.parse` but not in the CLI (`dotenv get` and `dotenv
set`).

The key-value binding regular expression was inspired by
https://github.com/bkeepers/dotenv/blob/d749366b6/lib/dotenv/parser.rb#L14-L30

Parsing of escapes was fixed thanks to
https://stackoverflow.com/questions/4020539/process-escape-sequences-in-a-string-in-python/24519338#24519338
Pull Request #148: Add support for newlines, backslashes, trailing comments and unquoted UTF-8

70 of 70 new or added lines in 1 file covered. (100.0%)

259 of 287 relevant lines covered (90.24%)

4.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 387.1 14 Nov 2018 08:21PM UTC 0
89.55
Travis Job 387.1
2 387.2 14 Nov 2018 08:21PM UTC 0
90.24
Travis Job 387.2
3 387.3 14 Nov 2018 08:21PM UTC 0
90.24
Travis Job 387.3
4 387.4 14 Nov 2018 08:21PM UTC 0
90.24
Travis Job 387.4
5 387.5 14 Nov 2018 08:21PM UTC 0
89.55
Travis Job 387.5
Source Files on build 387
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #387
  • Pull Request #148
  • PR Base - master (#384)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc