comparison roundup/configuration.py @ 3820:771248aa8302

typos in docstrings
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Mon, 19 Feb 2007 20:27:53 +0000
parents 96b7e420b868
children 14ec78618bd5
comparison
equal deleted inserted replaced
3819:4299abf32e16 3820:771248aa8302
1 # Roundup Issue Tracker configuration support 1 # Roundup Issue Tracker configuration support
2 # 2 #
3 # $Id: configuration.py,v 1.39 2006-12-18 06:06:03 richard Exp $ 3 # $Id: configuration.py,v 1.40 2007-02-19 20:27:53 a1s Exp $
4 # 4 #
5 __docformat__ = "restructuredtext" 5 __docformat__ = "restructuredtext"
6 6
7 import getopt 7 import getopt
8 import imp 8 import imp
37 37
38 """Attempted access to non-existing configuration option 38 """Attempted access to non-existing configuration option
39 39
40 Configuration options may be accessed as configuration object 40 Configuration options may be accessed as configuration object
41 attributes or items. So this exception instances also are 41 attributes or items. So this exception instances also are
42 instances of KeyError (invalid item access) and AttrributeError 42 instances of KeyError (invalid item access) and AttributeError
43 (invalid attribute access). 43 (invalid attribute access).
44 44
45 Constructor parameter: option name 45 Constructor parameter: option name
46 46
47 """ 47 """
190 def isdefault(self): 190 def isdefault(self):
191 """Return True if current value is the default one""" 191 """Return True if current value is the default one"""
192 return self._value == self._default_value 192 return self._value == self._default_value
193 193
194 def isset(self): 194 def isset(self):
195 """Return True if the value is avaliable (either set or default)""" 195 """Return True if the value is available (either set or default)"""
196 return self._value != NODEFAULT 196 return self._value != NODEFAULT
197 197
198 def __str__(self): 198 def __str__(self):
199 return self.value2str(self._value) 199 return self.value2str(self._value)
200 200

Roundup Issue Tracker: http://roundup-tracker.org/