y values in file 'C:\ProgramData\AVAST Software\Avast\burger_client.ini'
[2018-06-14 15:35:40.204] [info   ] [servers    ] [ 7696: 8076] Server definition(s) loaded for 'C:\Program Files\AVAST Software\Avast\setup\servers.def': 29 (maintenance:0)
[2018-06-14 15:35:40.204] [info   ] [servers    ] [ 7696: 8076] ChooseServer: selected server 'Download l2932126 AVAST9 Server' of type 'URL_TYPE_DOWNLOAD_PROGRAM'.
[2018-06-14 15:35:40.226] [info   ] [dldwrap    ] [ 7696: 8076] HttpGet: 'servers.def.vpx' was successfully downloaded (ip: 194.158.214.145, size: 2903 bytes, url: http://l2932126.iavs9x.u.avast.com/iavs9x/servers.def.vpx).
[2018-06-14 15:35:40.230] [info   ] [dldwrap    ] [ 7696: 8076] HttpGet: 'servers.def.vpx' was successfully verified.
[2018-06-14 15:35:40.237] [info   ] [servers    ] [ 7696: 8076] Server definition(s) loaded for 'C:\Program Files\AVAST Software\Avast\setup\servers.def': 29 (maintenance:0)
[2018-06-14 15:35:40.244] [info   ] [servers    ] [ 7696: 8076] ChooseServer: selected server 'Download c5983736 AVAST9 Server' of type 'URL_TYPE_DOWNLOAD_PROGRAM'.
[2018-06-14 15:35:40.263] [info   ] [dldwrap    ] [ 7696: 8076] HttpGet: 'prod-pgm.vpx' was successfully downloaded (ip: 194.158.214.138, size: 446 bytes, url: http://c5983736.iavs9x.u.avast.com/iavs9x/prod-pgm.vpx).
[2018-06-14 15:35:40.267] [info   ] [dldwrap    ] [ 7696: 8076] HttpGet: 'prod-pgm.vpx' was successfully verified.
[2018-06-14 15:35:40.272] [info   ] [prod       ] [ 7696: 8076] LoadPartInfo: program = prg_ais-12040922 returned 0x00000000
[2018-06-14 15:35:40.272] [info   ] [prod       ] [ 7696: 8076] LoadPartInfo: setup = setup_ais-12040922 returned 0x00000000
[2018-06-14 15:35:40.272] [info   ] [prod       ] [ 7696: 8076] LoadUatInfo: uat.vpx returned 0x00000000
[2018-06-14 15:35:40.272] [info   ] [engine     ] [ 7696: 8076] LoadLatestProdAndParts: product file 'prod-pgm.vpx' was successfully loaded.
[2018-06-14 15:35:40.286] [info   ] [uat        ] [ 7696: 8076] UpdateLatestPartInfo: called, repo_id: 'iavs9x', p# coding: utf-8

from __future__ import print_function, absolute_import, division, unicode_literals

if False:  # MYPY
    from typing import Text, Any, Dict, List  # NOQA

__all__ = ["ScalarInt", "BinaryInt", "OctalInt", "HexInt", "HexCapsInt"]

from .compat import no_limit_int  # NOQA


class ScalarInt(no_limit_int):
    def __new__(cls, *args, **kw):
        # type: (Any, Any, Any) -> Any
        width = kw.pop('width', None)            # type: ignore
        underscore = kw.pop('underscore', None)  # type: ignore
        v = no_limit_int.__new__(cls, *args, **kw)        # type: ignore
        v._width = width
        v._underscore = underscore
        return v

    def __iadd__(self, a):  # type: ignore
        # type: (Any) -> Any
        x = type(self)(self + a)
        x._width = self._width  # type: ignore
        x._underscore = self._underscore[:] if self._underscore is not None else None  # type: ignore  # NOQA
        return x

    def __ifloordiv__(self, a):  # type: ignore
        # type: (Any) -> Any
        x = type(self)(self // a)
        x._width = self._width  # type: ignore
        x._underscore = self._underscore[:] if self._underscore is not None else None  # type: ignore  # NOQA
        return x

    def __imul__(self, a):  # type: ignore
        # type: (Any) -> Any
        x = type(self)(self * a)
        x._width = self._width  # type: ignore
        x._underscore = self._underscore[:] if self._underscore is not None else None  # type: ignore  # NOQA
        return x

    def __ipow__(self, a):  # type: ignore
        # type: (Any) -> Any
        x = type(self)(self ** a)
        x._width = self._width  # type: ignore
        x._underscore = self._underscore[:] if self._underscore is not None else None  # type: ignore  # NOQA
        return x

    def __isub__(self, a):  # type: ignore
        # type: (Any) -> Any
        x = type(self)(self - a)
        x._width = self._width  # type: ignore
        x._underscore = self._underscore[:] if self._underscore is not None else None  # type: ignore  # NOQA
        return x


class BinaryInt(ScalarInt):
    def __new__(cls, value, width=None, underscore=None):
        # type: (Any, Any, Any) -> Any
        return ScalarInt.__new__(cls, value, width=width, underscore=underscore)


class OctalInt(ScalarInt):
    def __new__(cls, value, width=None, underscore=None):
        # type: (Any, Any, Any) -> Any
        return ScalarInt.__new__(cls, value, width=width, underscore=underscore)


# mixed casing of A-F is not supported, when loading the first non digit
# determines the case

class HexInt(ScalarInt):
    """uses lower case (a-f)"""
    def __new__(cls, value, width=None, underscore=None):
        # type: (Any, Any, Any) -> Any
        return ScalarInt.__new__(cls, value, width=width, underscore=underscore)


class HexCapsInt(ScalarInt):
    """uses upper case (A-F)"""
    def __new__(cls, value, width=None, underscore=None):
        # type: (Any, Any, Any) -> Any
        return ScalarInt.__new__(cls, value, width=width, underscore=underscore)
