MCPcopy Create free account
hub / github.com/cztomczak/cefpython / remove_deps_entry

Function remove_deps_entry

tools/automate-git.py:380–401  ·  view source on GitHub ↗

Remove an entry from the Chromium DEPS file at the specified path.

(path, entry)

Source from the content-addressed store, hash-verified

378
379
380def remove_deps_entry(path, entry):
381 """ Remove an entry from the Chromium DEPS file at the specified path. """
382 msg('Updating DEPS file: %s' % path)
383 if not options.dryrun:
384 # Read the DEPS file.
385 fp = open(path, 'r')
386 lines = fp.readlines()
387 fp.close()
388
389 # Write the DEPS file.
390 # Each entry takes 2 lines. Skip both lines if found.
391 fp = open(path, 'w')
392 skip_next = False
393 for line in lines:
394 if skip_next:
395 skip_next = False
396 continue
397 elif line.find(entry) >= 0:
398 skip_next = True
399 continue
400 fp.write(line)
401 fp.close()
402
403
404def apply_deps_patch():

Callers 1

apply_deps_patchFunction · 0.85

Calls 2

msgFunction · 0.85
findMethod · 0.80

Tested by

no test coverage detected