MCPcopy Create free account
hub / github.com/apple/coremltools / UpdateJavaScript

Function UpdateJavaScript

deps/protobuf/update_version.py:264–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262
263
264def UpdateJavaScript():
265 RewriteTextFile('js/package.json',
266 lambda line : re.sub(
267 r'^ "version": ".*",$',
268 ' "version": "%s",' % GetFullVersion(rc_suffix = '-rc.'),
269 line))
270
271
272def UpdateMakefile():

Callers 1

update_version.pyFile · 0.85

Calls 3

GetFullVersionFunction · 0.85
subMethod · 0.80
RewriteTextFileFunction · 0.70

Tested by

no test coverage detected