Code review comment for lp:~cjwatson/launchpad/refactor-cron-germinate

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Some very nice tests there! To continue:

=== added file 'lib/lp/archivepublisher/tests/test_generate_extra_overrides.py'

+def file_contents(path):
+ """Return the contents of the file at path."""
+ with open(path) as handle:
+ return handle.read()

Since you're only reading the file, there's probably no hurry to close this file handle. So you could just return “open(path).read().”

« Back to merge proposal