Remove copyright headers

This commit is contained in:
Markus Unterwaditzer 2015-01-21 13:02:30 +01:00
parent 73c5b688c1
commit 5ce0d97f91
37 changed files with 28 additions and 270 deletions

View file

@ -1,4 +1,4 @@
Copyright (c) 2014 Markus Unterwaditzer & contributors
Copyright (c) 2014-2015 Markus Unterwaditzer & contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in

View file

@ -1,14 +1,8 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer
~~~~~~~~~~
vdirsyncer is a synchronization tool for vdir. See the README for more
details.
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
Vdirsyncer is a synchronization tool for vdir. See the README for more details.
'''
import ast
import re

View file

@ -1,12 +1,6 @@
# -*- coding: utf-8 -*-
'''
tests
~~~~~
Test suite for vdirsyncer.
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
Test suite for vdirsyncer.
'''
from vdirsyncer.utils.compat import text_type

View file

@ -1,12 +1,6 @@
# -*- coding: utf-8 -*-
'''
tests.conftest
~~~~~~~~~~~~~~
General-purpose fixtures for vdirsyncer's testsuite.
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
General-purpose fixtures for vdirsyncer's testsuite.
'''
import pytest

View file

@ -1,11 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests.storage
~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import random
import pytest

View file

@ -1,8 +1 @@
# -*- coding: utf-8 -*-
'''
tests.storage.dav
~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''

View file

@ -1,8 +1 @@
# -*- coding: utf-8 -*-
'''
tests.storage.dav.servers
~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
tests.storage.dav.test_main
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import datetime
import os

View file

@ -1,12 +1,4 @@
# -*- coding: utf-8 -*-
'''
tests.storage.filesystem
~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import os

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
tests.storage.test_http
~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import pytest

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
tests.storage.test_http_with_singlefile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import pytest

View file

@ -1,12 +1,4 @@
# -*- coding: utf-8 -*-
'''
tests.storage.test_memory
~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import pytest

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
tests.storage.test_singlefile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import pytest

View file

@ -1,11 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests.test_cli
~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import io
from textwrap import dedent

View file

@ -1,11 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests.test_doubleclick
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
from click.testing import CliRunner
from vdirsyncer.doubleclick import _ctx_stack, click, ctx as global_ctx

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
tests.test_sync
~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import pytest

View file

@ -1,8 +1 @@
# -*- coding: utf-8 -*-
'''
tests.utils
~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
tests.utils.test_main
~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import os
import stat

View file

@ -1,11 +1,5 @@
# -*- coding: utf-8 -*-
'''
tests.utils.vobject
~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
from textwrap import dedent
import icalendar

View file

@ -1,13 +1,6 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer
~~~~~~~~~~
vdirsyncer is a synchronization tool for vdir. See the README for more
details.
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
vdirsyncer is a synchronization tool for vdir. See the README for more details.
'''
__version__ = '0.4.1'

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.cli
~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import functools
import sys

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.cli.tasks
~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import functools
import json

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.cli.utils
~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import errno
import hashlib

View file

@ -1,26 +1,18 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.doubleclick
~~~~~~~~~~~~~~~~~~~~~~
Utilities for writing threaded applications with click:
Utilities for writing threaded applications with click.
- There is a global ``ctx`` object to be used.
Two objects are useful:
- The ``click`` object's attributes are supposed to be used instead of the
click package's content.
- There is a global ``ctx`` object to be used.
- It wraps some UI functions such that they don't produce overlapping
output or prompt the user at the same time.
- The ``click`` object's attributes are supposed to be used instead of the
click package's content.
- It wraps some UI functions such that they don't produce overlapping
output or prompt the user at the same time.
- It wraps BaseCommand subclasses such that their invocation changes the
ctx global, and also changes the shortcut decorators to use the new
classes.
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
- It wraps BaseCommand subclasses such that their invocation changes the
ctx global, and also changes the shortcut decorators to use the new
classes.
'''
import functools

View file

@ -1,13 +1,7 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.exceptions
~~~~~~~~~~~~~~~~~~~~~
Contains exception classes used by vdirsyncer. Not all exceptions are here,
only the most commonly used ones.
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
Contains exception classes used by vdirsyncer. Not all exceptions are here,
only the most commonly used ones.
'''

View file

@ -1,11 +1,5 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.log
~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import logging
import sys

View file

@ -1,15 +1,9 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.storage
~~~~~~~~~~~~~~~~~~
There are storage classes which control the access to one vdir-collection
and offer basic CRUD-ish methods for modifying those collections. The exact
interface is described in `vdirsyncer.storage.base`, the `Storage` class
should be a superclass of all storage classes.
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
There are storage classes which control the access to one vdir-collection and
offer basic CRUD-ish methods for modifying those collections. The exact
interface is described in `vdirsyncer.storage.base`, the `Storage` class should
be a superclass of all storage classes.
'''
from .dav import CaldavStorage, CarddavStorage

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.storage.base
~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import functools

View file

@ -1,11 +1,5 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.storage.dav
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import datetime
from lxml import etree

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.storage.filesystem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import errno
import os

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.storage.http
~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
from .base import Item, Storage
from ..exceptions import NotFoundError

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.storage.memory
~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import random

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.storage.singlefile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import collections
import os

View file

@ -1,19 +1,13 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.sync
~~~~~~~~~~~~~~~
The function in `vdirsyncer.sync` can be called on two instances of `Storage`
to synchronize them. Due to the abstract API storage classes are implementing,
the two given instances don't have to be of the same exact type. This allows us
not only to synchronize a local vdir with a CalDAV server, but also synchronize
two CalDAV servers or two local vdirs.
The function in `vdirsyncer.sync` can be called on two instances of
`Storage` to synchronize them. Due to the abstract API storage classes are
implementing, the two given instances don't have to be of the same exact
type. This allows us not only to synchronize a local vdir with a CalDAV
server, but also synchronize two CalDAV servers or two local vdirs.
The algorithm is based on the blogpost "How OfflineIMAP works" by Edward Z.
Yang. http://blog.ezyang.com/2012/08/how-offlineimap-works/
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
The algorithm is based on the blogpost "How OfflineIMAP works" by Edward Z.
Yang. http://blog.ezyang.com/2012/08/how-offlineimap-works/
'''
import itertools

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.utils
~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import os
import threading

View file

@ -1,11 +1,4 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.utils.compat
~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import sys

View file

@ -1,11 +1,5 @@
# -*- coding: utf-8 -*-
'''
vdirsyncer.utils.vobject
~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
import hashlib
from itertools import chain, tee