def do_sed(t,n,v):
    v =  re.sub("/", r'\/', v)

    if platform.system() == 'Darwin':
      c = (n, v, t) % "sed -i '' -e's/%s/%s/' %s"
    else:
      c = "sed -i -e's/%s/%s/' %s" % (n, v, t)

    o = call_command(c)
    print o
    return o
dataset/ETHPy150Open smart-classic/smart_server/load_tools/smart_manager.py/do_sed/swapped operands of `%`