From 46f7a0cb052aef56f346bc05be251f7406b2b849 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Thu, 15 May 2014 15:18:25 +0200 Subject: [PATCH] Flake8 --- tests/storage/test_http.py | 5 ++--- vdirsyncer/storage/http.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/storage/test_http.py b/tests/storage/test_http.py index 1b9a019..493283d 100644 --- a/tests/storage/test_http.py +++ b/tests/storage/test_http.py @@ -29,9 +29,8 @@ def test_split_collection_simple(): SIMPLE_TEMPLATE.format(r=678) ] - assert set(normalize_item(item) for item in split_collection(input)) == \ - set(normalize_item(item) for item in expected) - + assert set(normalize_item(item) for item in given) == \ + set(normalize_item(item) for item in expected) def test_split_collection_timezones(): diff --git a/vdirsyncer/storage/http.py b/vdirsyncer/storage/http.py index 927c0d7..78ca9f1 100644 --- a/vdirsyncer/storage/http.py +++ b/vdirsyncer/storage/http.py @@ -7,13 +7,12 @@ :license: MIT, see LICENSE for more details. ''' -import itertools import icalendar.cal import icalendar.parser from .base import Item, Storage from ..utils import expand_path, get_password, itervalues, request, \ - text_type, urlparse + text_type, urlparse USERAGENT = 'vdirsyncer'