Merge lp:~3v1n0/unity/unity-script-fix-byte-regex into lp:unity
| Status: | Merged |
|---|---|
| Approved by: | Marco Trevisan (Treviño) on 2015-12-16 |
| Approved revision: | 4055 |
| Merged at revision: | 4058 |
| Proposed branch: | lp:~3v1n0/unity/unity-script-fix-byte-regex |
| Merge into: | lp:unity |
| Diff against target: |
15 lines (+2/-2) 1 file modified
tools/unity.cmake (+2/-2) |
| To merge this branch: | bzr merge lp:~3v1n0/unity/unity-script-fix-byte-regex |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-12-15 | |
| Barry Warsaw (community) | Approve on 2015-12-15 | ||
| Sebastien Bacher | 2015-12-15 | Approve on 2015-12-15 | |
|
Review via email:
|
|||
Commit Message
Unity: compile a byte regex in order to get proper matching with byte cmdline
- 4055. By Marco Trevisan (Treviño) on 2015-12-15
-
Unity: compile a byte regex in order to get proper matching with byte cmdline
| Barry Warsaw (barry) wrote : | # |
Since you're reading the command line in 'rb' mode, cmdline is indeed a bytes object, so this patch is good.
Aside, you're letting garbage collection close the open file descriptor, which generally isn't a good idea. You might also consider changing the preceding line to:
with open(os.
cmdline = fp.read()
That will ensure the fd gets closed in all cases.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:4058
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 4056. By Marco Trevisan (Treviño) on 2015-12-17
-
unity.cmake: correctly compare strings with strings


looks fine to me but you might want another review from somebody who can make sense of python encoding issues ;-)