From: Daira Hopwood <daira@jacaranda.org>
Date: Tue, 15 Sep 2015 18:19:00 +0000 (+0100)
Subject: Fix another rebasing error.
X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/running.html?a=commitdiff_plain;h=03b8caa733ac2907136a73475d67f663d4d91dfb;p=tahoe-lafs%2Ftahoe-lafs.git

Fix another rebasing error.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
---

diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py
index 859f6711..a440e6a7 100644
--- a/src/allmydata/frontends/magic_folder.py
+++ b/src/allmydata/frontends/magic_folder.py
@@ -566,7 +566,7 @@ class Downloader(QueueMixin):
     FUDGE_SECONDS = 10.0
 
     @classmethod
-    def _write_downloaded_file(cls, path, file_contents, base, is_conflict=False, now=None):
+    def _write_downloaded_file(cls, path, file_contents, is_conflict=False, now=None):
         # 1. Write a temporary file, say .foo.tmp.
         # 2. is_conflict determines whether this is an overwrite or a conflict.
         # 3. Set the mtime of the replacement file to be T seconds before the
@@ -577,8 +577,7 @@ class Downloader(QueueMixin):
         #
         # Returns the path of the destination file.
 
-        precondition(isinstance(path, unicode), path=path)
-        path = fileutil.abspath_expanduser_unicode(path, base=base)
+        precondition_abspath(path)
         replacement_path = path + u".tmp"  # FIXME more unique
         backup_path = path + u".backup"
         if now is None: