~brz/brz-debian/byoci

« back to all changes in this revision

Viewing changes to upstream/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-11-14 04:33:50 UTC
  • mto: This revision was merged to the branch mainline in revision 776.
  • Revision ID: jelmer@jelmer.uk-20171114043350-e8kd31e7pmz33a0j
Swap arguments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
        (tmp, tempfilename) = tempfile.mkstemp()
259
259
        try:
260
260
            tmp = os.fdopen(tmp, 'wb')
261
 
            watch = self.tree.get_file_text(watch_id)
 
261
            watch = self.tree.get_file_text(watchfile, watch_id)
262
262
            tmp.write(watch)
263
263
        finally:
264
264
            tmp.close()