[stable-8] Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8723)

Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8720)

* Remove bad whitespace.

* 'Fixing' various used-before-assignment issues that pylint flagged.

(cherry picked from commit 9a16eaf9ba)
This commit is contained in:
Felix Fontein 2024-08-07 16:03:43 +02:00 committed by GitHub
parent ee6d8cea9d
commit ca32d9f925
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 14 additions and 1 deletions

View file

@ -183,6 +183,7 @@ class CronVar(object):
fileh = open(backup_file, 'w')
elif self.cron_file:
fileh = open(self.cron_file, 'w')
path = None
else:
filed, path = tempfile.mkstemp(prefix='crontab')
fileh = os.fdopen(filed, 'w')