cctool

A tool for managing contacts and calendars.
git clone https://git.ce9e.org/cctool.git

commit
0b264f21f740e74384056d18587fe88ffec3dc64
parent
8c23cc9d1689c332ed07f828c39297a52ef6cea9
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-05-08 19:54
rm MultiDict doctest

should be covered by unittests

Diffstat

M cctool.py 23 +----------------------

1 files changed, 1 insertions, 22 deletions


diff --git a/cctool.py b/cctool.py

@@ -101,28 +101,7 @@ def formats():
  101   101 
  102   102 
  103   103 class MultiDict(OrderedDict):
  104    -1 	"""Dict subclass with multiple values for each key.
  105    -1 
  106    -1 	>>> d = MultiDict()
  107    -1 	>>> d['foo']
  108    -1 	[]
  109    -1 	>>> d['foo'] = []
  110    -1 	>>> 'foo' in d
  111    -1 	False
  112    -1 	>>> d['foo'] = ['a', 'b', 'c']
  113    -1 	>>> 'foo' in d
  114    -1 	True
  115    -1 	>>> d['foo']
  116    -1 	['a', 'b', 'c']
  117    -1 	>>> d.first('foo')
  118    -1 	'a'
  119    -1 	>>> d.join('foo')
  120    -1 	'a,b,c'
  121    -1 	>>> d.join('foo', sep=', ')
  122    -1 	'a, b, c'
  123    -1 	>>> d.join('bar', default='N/A')
  124    -1 	'N/A'
  125    -1 	"""
   -1   104 	"""Dict subclass with multiple values for each key."""
  126   105 
  127   106 	def __contains__(self, key):
  128   107 		return (super(MultiDict, self).__contains__(key)