Changeset 612 in tailor for vcpx/config.py
- Timestamp:
- 08/17/05 19:43:15 (8 years ago)
- Hash name:
- 20050817174315-97f81-77122dd79cffc2e1849f2777a3f544853e4e108c
- File:
-
- 1 edited
-
vcpx/config.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/config.py
r603 r612 54 54 return defaultp or [s for s in self.sections() if not ':' in s] 55 55 56 def get(self, section, option, default=None ):56 def get(self, section, option, default=None, vars=None): 57 57 """ 58 58 Return the requested option value if present, otherwise the default. 59 59 """ 60 if self.has_option(section, option): 61 value = SafeConfigParser.get(self, section, option) 60 61 if self.has_option(section, option) or (vars and option in vars): 62 value = SafeConfigParser.get(self, section, option, vars=vars) 62 63 if value == 'None': 63 64 return default
Note: See TracChangeset
for help on using the changeset viewer.
