From 47d3b1917dde182cc3762c52cfab36e9cc27e795 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 26 Mar 2014 17:57:44 +0100 Subject: [PATCH] Move docstring --- vdirsyncer/storage/dav/base.py | 10 ---------- vdirsyncer/storage/http.py | 11 ++++++++++- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/vdirsyncer/storage/dav/base.py b/vdirsyncer/storage/dav/base.py index 385da9e..eeb17be 100644 --- a/vdirsyncer/storage/dav/base.py +++ b/vdirsyncer/storage/dav/base.py @@ -40,16 +40,6 @@ class DavStorage(HttpStorageBase): _repr_attributes = ('url', 'username') def __init__(self, **kwargs): - ''' - :param url: Base URL or an URL to a collection. Autodiscovery should be - done via :py:meth:`DavStorage.discover`. - :param username: Username for authentication. - :param password: Password for authentication. - :param verify: Verify SSL certificate, default True. - :param auth: Authentication method, from {'basic', 'digest'}, default - 'basic'. - :param useragent: Default 'vdirsyncer'. - ''' super(DavStorage, self).__init__(**kwargs) headers = self._default_headers() diff --git a/vdirsyncer/storage/http.py b/vdirsyncer/storage/http.py index 70f5cf4..0d0eded 100644 --- a/vdirsyncer/storage/http.py +++ b/vdirsyncer/storage/http.py @@ -69,7 +69,16 @@ class HttpStorageBase(Storage): def __init__(self, url, username='', password='', collection=None, verify=True, auth=None, useragent='vdirsyncer', **kwargs): - + ''' + :param url: Base URL or an URL to a collection. Autodiscovery should be + done via :py:meth:`DavStorage.discover`. + :param username: Username for authentication. + :param password: Password for authentication. + :param verify: Verify SSL certificate, default True. + :param auth: Authentication method, from {'basic', 'digest'}, default + 'basic'. + :param useragent: Default 'vdirsyncer'. + ''' super(HttpStorageBase, self).__init__(**kwargs) self._settings = {