jacobian/django-dotenv — pull request #2 by pcostesi (2014-02-16 03:18:27+00:00)
Title: Add shlex to handle in-line comments

Yesterday I discovered one of my apps wasn't behaving as expected. The problem was an inline comment in a dotenv file, so fixing it was trivial (just moved the comment to a new line). However, I thought this feature could be handy.

I added support for comments using the shlex module, though there is a slight problem with that: unquoted whitespace in values is replaced with spaces. :(