MCPcopy Index your code
hub / github.com/RustPython/RustPython / setcopyright

Function setcopyright

Lib/site.py:449–468  ·  view source on GitHub ↗

Set 'copyright' and 'credits' in builtins

()

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls 4

getattrFunction · 0.85
hasattrFunction · 0.85
extendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected