mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-18 01:41:35 +00:00
[PR #11343/e8f2b135 backport][stable-12] batch 3 - update Python idiom to 3.7 using pyupgrade (#11352)
batch 3 - update Python idiom to 3.7 using pyupgrade (#11343)
* batch 3 - update Python idiom to 3.7 using pyupgrade
* add changelog frag
* bring back sanity
* adjust test
* Apply suggestions from code review
(cherry picked from commit e8f2b135ba)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
2d07481e64
commit
f49c5f79a7
26 changed files with 74 additions and 51 deletions
|
|
@ -171,7 +171,7 @@ class Crypttab:
|
|||
os.makedirs(os.path.dirname(path))
|
||||
open(path, "a").close()
|
||||
|
||||
with open(path, "r") as f:
|
||||
with open(path) as f:
|
||||
for line in f.readlines():
|
||||
self._lines.append(Line(line))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue