diff options
author | Daniel Clemente <dcl441-bugs@yahoo.com> | 2009-10-31 00:26:08 +0100 |
---|---|---|
committer | Daniel Clemente <dcl441-bugs@yahoo.com> | 2009-10-31 00:26:08 +0100 |
commit | ea56e001a89d3b63bf8442e52fa57167c95d74f1 (patch) | |
tree | 2e1a5abc2dfe2eb30c7bf69e0df177619799d504 | |
parent | 7fe765d6a30f07feb88de4c612d2cece83aadd97 (diff) | |
download | bzr-fastimport-ea56e001a89d3b63bf8442e52fa57167c95d74f1.tar.gz |
unicode to str back on export
-rw-r--r-- | commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands.py b/commands.py index 7368070..1bf7f3b 100644 --- a/commands.py +++ b/commands.py @@ -331,7 +331,8 @@ class FileModifyCommand(FileCommand): elif self.dataref is None: dataref = "inline" if include_file_contents: - datastr = "\ndata %d\n%s" % (len(self.data), self.data) + dataencoded = self.data.encode("utf8") + datastr = "\ndata %d\n%s" % (len(dataencoded), dataencoded) else: dataref = "%s" % (self.dataref,) path = format_path(self.path) |