From ef10e3a2c783d0ac54383e2c659eb9660996535e Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 9 Apr 2011 14:08:07 -0500 Subject: [PATCH] u'string', but of course ;) --- mediagoblin/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/storage.py b/mediagoblin/storage.py index 3b6a7a2a..8e62a3a6 100644 --- a/mediagoblin/storage.py +++ b/mediagoblin/storage.py @@ -102,7 +102,7 @@ class StorageInterface(object): But if a file does exist, let's get one back with at uuid tacked on: >>> storage_handler.get_unique_filename(['dir1', 'dir2', 'fname.jpg']) - ['dir1', 'dir2', 'd02c3571-dd62-4479-9d62-9e3012dada29-fname.jpg'] + [u'dir1', u'dir2', u'd02c3571-dd62-4479-9d62-9e3012dada29-fname.jpg'] """ if self.file_exists(filepath): return filepath[:-1] + ["%s-%s" % (uuid.uuid4(), filepath[-1])]