mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-29 09:35:50 +00:00
parent
2957a0dc41
commit
7646222bc7
1 changed files with 4 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ import functools
|
|||
|
||||
from .. import exceptions, sync
|
||||
from ..utils import uniq
|
||||
from ..utils.compat import with_metaclass
|
||||
from ..utils.compat import to_native, with_metaclass
|
||||
from ..utils.vobject import Item # noqa
|
||||
|
||||
|
||||
|
|
@ -77,8 +77,9 @@ class Storage(with_metaclass(StorageMeta)):
|
|||
self.read_only = bool(read_only)
|
||||
|
||||
if collection and instance_name:
|
||||
assert isinstance(collection, str)
|
||||
instance_name = '{}/{}'.format(instance_name, collection)
|
||||
# XXX: PY2 hack
|
||||
instance_name = '{}/{}'.format(instance_name,
|
||||
to_native(collection, 'utf-8'))
|
||||
self.instance_name = instance_name
|
||||
self.collection = collection
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue