def escape_single_quotes(text):
    return re.sub(r'\\("|\')', r'\\\\\1', text).replace('\'', '\'\\\'\'')
Nominatim.geocode
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/escape_single_quotes--crossover with--dataset/ETHPy150Open geopy/geopy/test/geocoders/nominatim.py/NominatimTestCase.test_geocode