MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / __code_that_prints_version_pre_38

Function __code_that_prints_version_pre_38

PySimpleGUI/PySimpleGUI.py:24770–24780  ·  view source on GitHub ↗
(package)

Source from the content-addressed store, hash-verified

24768
24769
24770def __code_that_prints_version_pre_38(package):
24771 return f"""
24772import warnings
24773warnings.filterwarnings("ignore", category=DeprecationWarning)
24774import pkg_resources
24775try:
24776 ver=pkg_resources.get_distribution("{package}").version.rstrip()
24777except:
24778 ver=' '
24779print(ver, end='')
24780"""
24781
24782def __code_that_prints_version(package):
24783 return f"""

Callers 1

__show_package_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected