Skip to content

use with instead of file open and close #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 26, 2015
Merged

Conversation

WKPlus
Copy link

@WKPlus WKPlus commented Nov 26, 2015

  1. use with to open and close a file, require python2.5+
  2. f.write may throw an uncaught exception, since f maybe undefined if there is an exception when define it.

@NARKOZ
Copy link
Owner

NARKOZ commented Nov 26, 2015

Could you change it so it writes to stdout instead?
Because cron jobs already redirect the output to log files.

@NARKOZ
Copy link
Owner

NARKOZ commented Nov 26, 2015

Thank you!

NARKOZ added a commit that referenced this pull request Nov 26, 2015
use with instead of file open and close
@NARKOZ NARKOZ merged commit 47e8900 into NARKOZ:master Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants