def isLiteralStr(inp):
    return ((inp.startswith("'") and inp.endswith("'")) or
            (inp.startswith('"') and inp.endswith('"')))
Optionally view suppressed output.
dataset/ETHPy150Open xraypy/xraylarch/lib/utils/strutils.py/isLiteralStr--crossover with--dataset/ETHPy150Open christabor/MoAL/MOAL/test_files.py/_view_output_suppressed