def _XmlEscape(value, attr=False):
  def replace(match):
    m = match.string[match.start() : match.end()]
    # don't replace single quotes in attrs
    if attr and m == "'":
      return m
    return _xml_escape_map[m]
  return _xml_escape_re.sub(replace, value)
Copies an input jar into a directory, splitting if necessary.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/easy_xml.py/_XmlEscape--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/jarfile.py/SplitJar