MCPcopy Index your code
hub / github.com/praw-dev/praw / valid_version

Function valid_version

tools/set_version.py:98–103  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

96
97
98def valid_version(version):
99 parsed_version = packaging.version.parse(version)
100 if parsed_version.local or parsed_version.is_postrelease or parsed_version.epoch:
101 sys.stderr.write("epoch, local postrelease version parts are not supported")
102 return False
103 return parsed_version
104
105
106if __name__ == "__main__":

Callers 2

handle_versionFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…