changed chmod to 2.4 compat

pull/18777/head
Brian Coca 9 years ago committed by Matt Clay
parent 4f9bb86e58
commit 99159b3cdd

@ -235,7 +235,7 @@ class CronTab(object):
fileh = open(self.cron_file, 'w') fileh = open(self.cron_file, 'w')
else: else:
filed, path = tempfile.mkstemp(prefix='crontab') filed, path = tempfile.mkstemp(prefix='crontab')
os.chmod(path, 0o644) os.chmod(path, 0644)
fileh = os.fdopen(filed, 'w') fileh = os.fdopen(filed, 'w')
fileh.write(self.render()) fileh.write(self.render())

Loading…
Cancel
Save