From 926aec14737d59160c0fac04a1af201550abe967 Mon Sep 17 00:00:00 2001 From: Elrond Date: Wed, 3 Aug 2011 23:11:42 +0200 Subject: [PATCH] MountStorage: drop u'' nonsense from mount method My old resolver couldn't handle empty lists, so for the mount resolving I appeneded a u'' as dummy element. Not needed any more. --- mediagoblin/storage.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mediagoblin/storage.py b/mediagoblin/storage.py index e3d54a30..abbe16c9 100644 --- a/mediagoblin/storage.py +++ b/mediagoblin/storage.py @@ -225,14 +225,11 @@ class MountStorage(StorageInterface): Mount a new backend under dirpath """ new_ent = clean_listy_filepath(dirpath) - new_ent.append(u'') print "Mounting:", repr(new_ent) already, rem_1, table, rem_2 = self.resolve_to_backend(new_ent, True) print "===", repr(already), repr(rem_1), repr(rem_2) - assert rem_1.pop(-1) == u'', "Internal Error 1" - assert rem_2.pop(-1) == u'', "Internal Error 2" assert (already is None) or (len(rem_2) > 0), "Already mounted" for part in rem_2: table[part] = {} -- 2.25.1