def lon_to_deg(lon):
    if isinstance(lon, str) and (':' in lon):
        # TODO: handle other coordinate systems
        lon_deg = hmsStrToDeg(lon)
    else:
        lon_deg = float(lon)
:return: Python statement to create an equivalent object
dataset/ETHPy150Open ejeschke/ginga/ginga/util/wcs.py/lon_to_deg--crossover with--dataset/ETHPy150Open drkjam/netaddr/netaddr/ip/__init__.py/IPRange.__repr__