MCPcopy
hub / github.com/OfflineIMAP/offlineimap / getconfint

Method getconfint

offlineimap/CustomConfig.py:270–283  ·  view source on GitHub ↗

Retrieves integer value from the configuration. Arguments: - option: option name whose value is to be retrieved; - default: default return value if no such option exists.

(self, option, default = CustomConfigDefault)

Source from the content-addressed store, hash-verified

268
269
270 def getconfint(self, option, default = CustomConfigDefault):
271 """
272 Retrieves integer value from the configuration.
273
274 Arguments:
275 - option: option name whose value is to be retrieved;
276 - default: default return value if no such option
277 exists.
278
279 """
280
281 return self._confighelper_runner(option, default,
282 self.getconfig().getdefaultint,
283 self.getconfig().getint)
284
285
286 def getconffloat(self, option, default = CustomConfigDefault):

Callers 5

__syncMethod · 0.80
getkeepaliveMethod · 0.80
getportMethod · 0.80
getmaxconnectionsMethod · 0.80
__init__Method · 0.80

Calls 2

_confighelper_runnerMethod · 0.95
getconfigMethod · 0.95

Tested by

no test coverage detected