Merge ~cjwatson/ols-charm-deps:resource-warnings into ols-charm-deps:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Guillermo Gonzalez |
Approved revision: | 84a7dbcc776be65897b5bb8c4c0f0b89c2e7bc03 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/ols-charm-deps:resource-warnings |
Merge into: | ols-charm-deps:master |
Diff against target: |
64 lines (+10/-5) 4 files modified
layer/ols-pg/lib/ols/postgres.py (+2/-1) layer/ols/actions/show-config (+2/-1) layer/ols/reactive/ols.py (+2/-1) layer/ols/unit_tests/test_ols.py (+4/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guillermo Gonzalez | Approve | ||
Review via email:
|
Commit message
Fix ResourceWarnings on Python 3
Description of the change
Python 3 tends to produce warnings for code along the lines of open(...).read(). Use context manager forms instead.
To post a comment you must log in.
+1