Merge lp:~jcsackett/convoy/handle-commments into lp:convoy
Proposed by
j.c.sackett
Status: | Merged |
---|---|
Approved by: | Fabrice Matrat |
Approved revision: | 34 |
Merged at revision: | 33 |
Proposed branch: | lp:~jcsackett/convoy/handle-commments |
Merge into: | lp:convoy |
Diff against target: |
53 lines (+23/-0) 2 files modified
convoy/meta.py (+4/-0) convoy/tests/test_meta.py (+19/-0) |
To merge this branch: | bzr merge lp:~jcsackett/convoy/handle-commments |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Collard (community) | Needs Fixing | ||
Francesco Banconi | Approve | ||
Fabrice Matrat (community) | Approve | ||
Review via email: mp+260469@code.launchpad.net |
Commit message
Strip comments as part of extracting the metadata.
Description of the change
convoy's ability to extract modules as part of the metadata of a js file dies when the requires block has comments, b/c it doesn't end up with an object that can be converted to JSON.
With this branch, comments are removed from the string before attempting to load it.
To post a comment you must log in.
LGTM.