MCPcopy Index your code
hub / github.com/python/cpython / setcopyright

Function setcopyright

Lib/site.py:446–465  ·  view source on GitHub ↗

Set 'copyright' and 'credits' in builtins

()

Source from the content-addressed store, hash-verified

444
445
446def setcopyright():
447 """Set 'copyright' and 'credits' in builtins"""
448 builtins.copyright = _sitebuiltins._Printer("copyright", sys.copyright)
449 builtins.credits = _sitebuiltins._Printer("credits", """\
450Thanks to CWI, CNRI, BeOpen, Zope Corporation, the Python Software
451Foundation, and a cast of thousands for supporting Python
452development. See www.python.org for more information.""")
453 files, dirs = [], []
454 # Not all modules are required to have a __file__ attribute. See
455 # PEP 420 for more details.
456 here = getattr(sys, '_stdlib_dir', None)
457 if not here and hasattr(os, '__file__'):
458 here = os.path.dirname(os.__file__)
459 if here:
460 files.extend(["LICENSE.txt", "LICENSE"])
461 dirs.extend([os.path.join(here, os.pardir), here, os.curdir])
462 builtins.license = _sitebuiltins._Printer(
463 "license",
464 "See https://www.python.org/psf/license/",
465 files, dirs)
466
467
468def sethelper():

Callers 1

mainFunction · 0.85

Calls 3

dirnameMethod · 0.45
extendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…