Package pyanaconda :: Package storage :: Module size
[hide private]
[frames] | no frames]

Module size

source code

Classes [hide private]
  Size
Common class to represent storage device and filesystem sizes.
Functions [hide private]
 
_makeSpecs(prefix, abbr)
Internal method used to generate a list of specifiers.
source code
 
_parseSpec(spec)
Parse string representation of size.
source code
Variables [hide private]
  _ = lambda x:
  _decimalPrefix = [(1000, _("kilo"), _("k")), (1000** 2, _("meg...
  _binaryPrefix = [(1024, _("kibi"), _("Ki")), (1024** 2, _("meb...
  _bytes = [_('b'), _('byte'), _('bytes')]
  _prefixes = _decimalPrefix+ _binaryPrefix
Variables Details [hide private]

_decimalPrefix

Value:
[(1000, _("kilo"), _("k")), (1000** 2, _("mega"), _("M")), (1000** 3, \
_("giga"), _("G")), (1000** 4, _("tera"), _("T")), (1000** 5, _("peta"\
), _("P")), (1000** 6, _("exa"), _("E")), (1000** 7, _("zetta"), _("Z"\
)), (1000** 8, _("yotta"), _("Y"))]

_binaryPrefix

Value:
[(1024, _("kibi"), _("Ki")), (1024** 2, _("mebi"), _("Mi")), (1024** 3\
, _("gibi"), _("Gi")), (1024** 4, _("tebi"), None), (1024** 5, _("pebi\
"), None), (1024** 6, _("ebi"), None), (1024** 7, _("zebi"), None), (1\
024** 8, _("yobi"), None)]