Merge ~smoser/cloud-init:cleanup/fix-tip-pycodestyle-invalid-escape-sequences into cloud-init:master
Status: | Merged |
---|---|
Approved by: | Chad Smith |
Approved revision: | 6f500dae89dc309001a12f1e878c1fe694201bf1 |
Merge reported by: | Chad Smith |
Merged at revision: | acca826adf39ddfedde78cfbfc47e81a06c6f42a |
Proposed branch: | ~smoser/cloud-init:cleanup/fix-tip-pycodestyle-invalid-escape-sequences |
Merge into: | cloud-init:master |
Diff against target: |
135 lines (+13/-13) 8 files modified
cloudinit/analyze/__main__.py (+1/-1) cloudinit/config/cc_apt_configure.py (+1/-1) cloudinit/config/cc_power_state_change.py (+1/-1) cloudinit/config/cc_rsyslog.py (+2/-2) cloudinit/distros/freebsd.py (+3/-3) cloudinit/util.py (+3/-3) tests/cloud_tests/testcases/base.py (+1/-1) tests/unittests/test_util.py (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Smith | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+343041@code.launchpad.net |
Commit message
pycodestyle: Fix invalid escape sequences in string literals.
Python has deprecated these invalid string literals now
https:/
and pycodestyle is identifying them with a W605 warning.
https:/
So basically, any use of \ not followed by one of [\'"abfnrtv]
or \ooo (octal) \xhh (hex) or a newline is invalid. This is most
comomnly seen for us in regex. To solve, you either:
a.) use a raw string r'...'
b.) correctly escape the \ that was not intended to be interpreted.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
PASSED: Continuous integration, rev:ada58c9f2ce 211117958e47c78 eecfeeafe79060 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 985/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 985/rebuild
https:/