mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Flake8
This commit is contained in:
parent
98a9748392
commit
a33e34bc60
3 changed files with 5 additions and 5 deletions
|
|
@ -107,7 +107,7 @@ class StorageTests(object):
|
||||||
assert not list(s.list())
|
assert not list(s.list())
|
||||||
s.upload(self._create_bogus_item())
|
s.upload(self._create_bogus_item())
|
||||||
assert list(s.list())
|
assert list(s.list())
|
||||||
|
|
||||||
def test_discover(self):
|
def test_discover(self):
|
||||||
collections = set()
|
collections = set()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
:license: MIT, see LICENSE for more details.
|
:license: MIT, see LICENSE for more details.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import hashlib
|
|
||||||
|
|
||||||
from .base import Item, Storage
|
from .base import Item, Storage
|
||||||
from ..utils import expand_path, get_password, request, text_type, urlparse
|
from ..utils import expand_path, get_password, request, text_type, urlparse
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -195,10 +195,12 @@ def action_conflict_resolve(ident):
|
||||||
raise SyncConflict()
|
raise SyncConflict()
|
||||||
elif conflict_resolution == 'a wins':
|
elif conflict_resolution == 'a wins':
|
||||||
sync_logger.info('...{} wins.'.format(a_storage))
|
sync_logger.info('...{} wins.'.format(a_storage))
|
||||||
action_update(ident, 'a', 'b')(storages, status, conflict_resolution)
|
action_update(ident, 'a', 'b')(storages, status,
|
||||||
|
conflict_resolution)
|
||||||
elif conflict_resolution == 'b wins':
|
elif conflict_resolution == 'b wins':
|
||||||
sync_logger.info('...{} wins.'.format(b_storage))
|
sync_logger.info('...{} wins.'.format(b_storage))
|
||||||
action_update(ident, 'b', 'a')(storages, status, conflict_resolution)
|
action_update(ident, 'b', 'a')(storages, status,
|
||||||
|
conflict_resolution)
|
||||||
else:
|
else:
|
||||||
raise ValueError('Invalid conflict resolution mode: {}'
|
raise ValueError('Invalid conflict resolution mode: {}'
|
||||||
.format(conflict_resolution))
|
.format(conflict_resolution))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue