(self, key, default=None)
return skytools.hsize_to_bytes(s)
Reads a size value in human format, if not set then default.

        Examples: 1, 2 B, 3K, 4 MB
Reads a size value in human format, if not set then default.
Reads a size value in human format if not set then default .
def getbytes(self, key, default=None):
        """Reads a size value in human format, if not set then default.

        Examples: 1, 2 B, 3K, 4 MB
        """
        try:
            s = self.cf.get(self.main_section, key)
        except ConfigParser.NoOptionError:
            if default is None:
                raise Exception("Config value not set: " + key)
            s = default
        return skytools.hsize_to_bytes(s)
def getbytes ( self , key , default = None ) : try : s = self . cf . get ( self . main_section , key ) except ConfigParser . NoOptionError : if default is None : raise Exception ( "Config value not set: " + key ) s = default return skytools . hsize_to_bytes ( s )