Fix for python 2.4 compatibility (#5693)

Fixes #5692
pull/18777/head
Evan Kaufman 8 years ago committed by Matt Clay
parent dddf810a19
commit 580c74140a

@ -727,8 +727,9 @@ def main():
changed = True changed = True
# no changes to env/job, but existing crontab needs a terminating newline # no changes to env/job, but existing crontab needs a terminating newline
if not changed and not crontab.existing.endswith(('\r', '\n')): if not changed:
changed = True if not (crontab.existing.endswith('\r') or crontab.existing.endswith('\n')):
changed = True
res_args = dict( res_args = dict(
jobs = crontab.get_jobnames(), jobs = crontab.get_jobnames(),

Loading…
Cancel
Save