bananas/environment.py
def parse_int(value):
    """
    Parse numeric string to int. Supports oct formatted string.

    :param str value: String value to parse as int
    :return int:
    """
    value = parse_str(value=value)
    if value.startswith("0"):
        return int(value.lstrip("0o"), 8)
    else:
        return int(value)
def parse_int(value):
    """
    Parse numeric string to int. Supports oct formatted string.

    :param str value: String value to parse as int
    :return int:
    """
    value = parse_str(value=value)
    if value.startswith("0"):
        return int(value.lstrip("0o"), 8)
    else:
        return int(value)
Parse numeric string to int. Supports oct formatted string.

    :param str value: String value to parse as int
    :return int: