MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / split_provision

Function split_provision

Lib/distutils/versionpredicate.py:142–164  ·  view source on GitHub ↗

Return the name and optional version number of a provision. The version number, if given, will be returned as a `StrictVersion` instance, otherwise it will be `None`. >>> split_provision('mypkg') ('mypkg', None) >>> split_provision(' mypkg( 1.2 ) ') ('mypkg', StrictVersion

(value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

stripMethod · 0.80
groupMethod · 0.80
compileMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected