| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/commits(/*name) |
| route-controller | commits |
| route-action | show |
| fetch-nonce | v2:a36cefda-ef43-ab56-98c5-bf32915c3157 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | DFC8:1D86C4:3FE57E5:511EE2F:6B0219C7 |
| html-safe-nonce | 161ee370c5d9951c75a053dec23412c5ba71e72af634cd543531a3d6aad76b15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkM4OjFEODZDNDozRkU1N0U1OjUxMUVFMkY6NkIwMjE5QzciLCJ2aXNpdG9yX2lkIjoiMTY5NjU1ODA3ODUyMDA3MjY0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 65b22c436a13848f4ee7657c5e9067669d50aa390c76564749dcdf7a0b7bd044 |
| hovercard-subject-tag | repository:1447790285 |
| github-keyboard-shortcuts | repository,commit-list,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///commits/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sidlovescoding/Cpython/commits/sid-python/Lib/_colorize.py |
| twitter:image | https://opengraph.githubassets.com/ed1e8647ba3ae8c65931fa343b8bc8beb09e2048558df81b38a0b843ce1557b9/sidlovescoding/Cpython |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed1e8647ba3ae8c65931fa343b8bc8beb09e2048558df81b38a0b843ce1557b9/sidlovescoding/Cpython |
| og:image:alt | The Python programming language. Contribute to sidlovescoding/Cpython development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| go-import | github.com/sidlovescoding/Cpython git https://github.com/sidlovescoding/Cpython.git |
| octolytics-dimension-user_id | 207958570 |
| octolytics-dimension-user_login | sidlovescoding |
| octolytics-dimension-repository_id | 1447790285 |
| octolytics-dimension-repository_nwo | sidlovescoding/Cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 81598961 |
| octolytics-dimension-repository_parent_nwo | python/cpython |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | commits |
| Skip to content | https://github.com/sidlovescoding/Cpython/commits/sid-python/Lib/_colorize.py#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsidlovescoding%2FCpython%2Fcommits%2Fsid-python%2FLib%2F_colorize.py |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsidlovescoding%2FCpython%2Fcommits%2Fsid-python%2FLib%2F_colorize.py |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fcommits%2Fshow&source=header-repo&source_repo=sidlovescoding%2FCpython |
| Reload | https://github.com/sidlovescoding/Cpython/commits/sid-python/Lib/_colorize.py |
| Reload | https://github.com/sidlovescoding/Cpython/commits/sid-python/Lib/_colorize.py |
| Reload | https://github.com/sidlovescoding/Cpython/commits/sid-python/Lib/_colorize.py |
| sidlovescoding | https://github.com/sidlovescoding |
| Cpython | https://github.com/sidlovescoding/Cpython |
| Code | https://github.com/sidlovescoding/Cpython |
| Pull requests1 (1) | https://github.com/sidlovescoding/Cpython/pulls |
| Actions | https://github.com/sidlovescoding/Cpython/actions |
| Projects | https://github.com/sidlovescoding/Cpython/projects |
| Security and quality | https://github.com/sidlovescoding/Cpython/security |
| Insights | https://github.com/sidlovescoding/Cpython/pulse |
| https://github.com/sidlovescoding/Cpython |
| Cpython | https://github.com/sidlovescoding/Cpython/commits |
| Lib | https://github.com/sidlovescoding/Cpython/commits/sid-python/Lib |
| _colorize.py | https://github.com/sidlovescoding/Cpython/commits/sid-python/Lib/_colorize.py |
| sid-python | https://github.com/sidlovescoding/Cpython/tree/sid-python |
| [3.14] gh-141570: can_colorize: Expect fileno() to raise OSError, as documented (GH-141716) (#141747) | https://github.com/sidlovescoding/Cpython/commit/8c796889ff85611cc1cfcc93a2793b92579f2662 |
| 8c79688 | https://github.com/sidlovescoding/Cpython/commit/8c796889ff85611cc1cfcc93a2793b92579f2662 |
| https://github.com/sidlovescoding/Cpython/blob/8c796889ff85611cc1cfcc93a2793b92579f2662/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/8c796889ff85611cc1cfcc93a2793b92579f2662 |
| [3.14] gh-133346: make `_colorize.Argparse` kw-only constructible (GH-140620) (#140621) | https://github.com/sidlovescoding/Cpython/commit/d664102a45cd0024878883640e29996170114bc6 |
| miss-islington | https://github.com/sidlovescoding/Cpython/commits?author=miss-islington |
| picnixz | https://github.com/sidlovescoding/Cpython/commits?author=picnixz |
| d664102 | https://github.com/sidlovescoding/Cpython/commit/d664102a45cd0024878883640e29996170114bc6 |
| https://github.com/sidlovescoding/Cpython/blob/d664102a45cd0024878883640e29996170114bc6/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/d664102a45cd0024878883640e29996170114bc6 |
| [3.14] gh-128636: Fix crash in PyREPL when os.environ is overwritten with an invalid value for macOS (GH-138089) (#138938) | https://github.com/sidlovescoding/Cpython/commit/1c901860e621615ecf9b77400d6cfae2c975d93a |
| 1c90186 | https://github.com/sidlovescoding/Cpython/commit/1c901860e621615ecf9b77400d6cfae2c975d93a |
| https://github.com/sidlovescoding/Cpython/blob/1c901860e621615ecf9b77400d6cfae2c975d93a/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/1c901860e621615ecf9b77400d6cfae2c975d93a |
| [3.14] gh-134953: Expand theming for `True`/`False`/`None` (GH-135000) (#138928) | https://github.com/sidlovescoding/Cpython/commit/dc4d016e7eaabead9e0ba9d259a5d1eba1932b3e |
| dc4d016 | https://github.com/sidlovescoding/Cpython/commit/dc4d016e7eaabead9e0ba9d259a5d1eba1932b3e |
| https://github.com/sidlovescoding/Cpython/blob/dc4d016e7eaabead9e0ba9d259a5d1eba1932b3e/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/dc4d016e7eaabead9e0ba9d259a5d1eba1932b3e |
| gh-133346: Make theming support in _colorize extensible (GH-133347) | https://github.com/sidlovescoding/Cpython/commit/f610bbdf74ea580b14353c6bfd08fd00bcbfa11e |
| ambv | https://github.com/sidlovescoding/Cpython/commits?author=ambv |
| hugovk | https://github.com/sidlovescoding/Cpython/commits?author=hugovk |
| f610bbd | https://github.com/sidlovescoding/Cpython/commit/f610bbdf74ea580b14353c6bfd08fd00bcbfa11e |
| https://github.com/sidlovescoding/Cpython/blob/f610bbdf74ea580b14353c6bfd08fd00bcbfa11e/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/f610bbdf74ea580b14353c6bfd08fd00bcbfa11e |
| gh-131507: Add support for syntax highlighting in PyREPL (GH-133247) | https://github.com/sidlovescoding/Cpython/commit/fac41f56d4b6b858cb52b40529855cce85cdbdcc |
| fac41f5 | https://github.com/sidlovescoding/Cpython/commit/fac41f56d4b6b858cb52b40529855cce85cdbdcc |
| https://github.com/sidlovescoding/Cpython/blob/fac41f56d4b6b858cb52b40529855cce85cdbdcc/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/fac41f56d4b6b858cb52b40529855cce85cdbdcc |
| gh-130645: Add color to `argparse` help (GH-132323) | https://github.com/sidlovescoding/Cpython/commit/4701ff92d747002d04b67688c7a581b1952773ac |
| https://github.com/hugovk |
| hugovk | https://github.com/sidlovescoding/Cpython/commits?author=hugovk |
| 4701ff9 | https://github.com/sidlovescoding/Cpython/commit/4701ff92d747002d04b67688c7a581b1952773ac |
| https://github.com/sidlovescoding/Cpython/blob/4701ff92d747002d04b67688c7a581b1952773ac/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/4701ff92d747002d04b67688c7a581b1952773ac |
| gh-131507: Clean up tests and type checking for `_pyrepl` (#131509) | https://github.com/sidlovescoding/Cpython/commit/5d8e981c8477ce483374b2fe6cd309a08c956299 |
| https://github.com/ambv |
| ambv | https://github.com/sidlovescoding/Cpython/commits?author=ambv |
| 5d8e981 | https://github.com/sidlovescoding/Cpython/commit/5d8e981c8477ce483374b2fe6cd309a08c956299 |
| https://github.com/sidlovescoding/Cpython/blob/5d8e981c8477ce483374b2fe6cd309a08c956299/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/5d8e981c8477ce483374b2fe6cd309a08c956299 |
| gh-129061: Fix `FORCE_COLOR` and `NO_COLOR` when empty strings (#129140) | https://github.com/sidlovescoding/Cpython/commit/9546fe2ef2db921709f3cb355b33bba977658672 |
| https://github.com/hugovk |
| hugovk | https://github.com/sidlovescoding/Cpython/commits?author=hugovk |
| 9546fe2 | https://github.com/sidlovescoding/Cpython/commit/9546fe2ef2db921709f3cb355b33bba977658672 |
| https://github.com/sidlovescoding/Cpython/blob/9546fe2ef2db921709f3cb355b33bba977658672/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/9546fe2ef2db921709f3cb355b33bba977658672 |
| gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (#127877) | https://github.com/sidlovescoding/Cpython/commit/05d12eecbde1ace39826320cadf8e673d709b229 |
| https://github.com/hugovk |
| hugovk | https://github.com/sidlovescoding/Cpython/commits?author=hugovk |
| 05d12ee | https://github.com/sidlovescoding/Cpython/commit/05d12eecbde1ace39826320cadf8e673d709b229 |
| https://github.com/sidlovescoding/Cpython/blob/05d12eecbde1ace39826320cadf8e673d709b229/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/05d12eecbde1ace39826320cadf8e673d709b229 |
| gh-128595: Default to stdout isatty for colour detection instead of stderr (#128498) | https://github.com/sidlovescoding/Cpython/commit/6f167d71347de6717d9f6b64026e21f23d41ef0b |
| 6f167d7 | https://github.com/sidlovescoding/Cpython/commit/6f167d71347de6717d9f6b64026e21f23d41ef0b |
| https://github.com/sidlovescoding/Cpython/blob/6f167d71347de6717d9f6b64026e21f23d41ef0b/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/6f167d71347de6717d9f6b64026e21f23d41ef0b |
| gh-128317: Highlight today in colour in calendar CLI output (#128318) | https://github.com/sidlovescoding/Cpython/commit/f21af186bf21c1c554209ac67d78d3cf99f7d7c0 |
| hugovk | https://github.com/sidlovescoding/Cpython/commits?author=hugovk |
| ZeroIntensity | https://github.com/sidlovescoding/Cpython/commits?author=ZeroIntensity |
| f21af18 | https://github.com/sidlovescoding/Cpython/commit/f21af186bf21c1c554209ac67d78d3cf99f7d7c0 |
| https://github.com/sidlovescoding/Cpython/blob/f21af186bf21c1c554209ac67d78d3cf99f7d7c0/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/f21af186bf21c1c554209ac67d78d3cf99f7d7c0 |
| gh-127353: Allow to force color output on Windows V2 (#127926) | https://github.com/sidlovescoding/Cpython/commit/0ac40acec045c4ce780cf7d887fcbe4c661e82b7 |
| https://github.com/PalmtopTiger |
| PalmtopTiger | https://github.com/sidlovescoding/Cpython/commits?author=PalmtopTiger |
| 0ac40ac | https://github.com/sidlovescoding/Cpython/commit/0ac40acec045c4ce780cf7d887fcbe4c661e82b7 |
| https://github.com/sidlovescoding/Cpython/blob/0ac40acec045c4ce780cf7d887fcbe4c661e82b7/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/0ac40acec045c4ce780cf7d887fcbe4c661e82b7 |
| Revert "gh-127353: Allow to force color output on Windows (#127354)" (#127889) | https://github.com/sidlovescoding/Cpython/commit/a8ffe661548e16ad02dbe6cb8a89513d7ed2a42c |
| https://github.com/hugovk |
| hugovk | https://github.com/sidlovescoding/Cpython/commits?author=hugovk |
| a8ffe66 | https://github.com/sidlovescoding/Cpython/commit/a8ffe661548e16ad02dbe6cb8a89513d7ed2a42c |
| https://github.com/sidlovescoding/Cpython/blob/a8ffe661548e16ad02dbe6cb8a89513d7ed2a42c/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/a8ffe661548e16ad02dbe6cb8a89513d7ed2a42c |
| gh-127353: Allow to force color output on Windows (#127354) | https://github.com/sidlovescoding/Cpython/commit/365451e28368db46ae89a3a990d85c10c2284aa2 |
| https://github.com/PalmtopTiger |
| PalmtopTiger | https://github.com/sidlovescoding/Cpython/commits?author=PalmtopTiger |
| 365451e | https://github.com/sidlovescoding/Cpython/commit/365451e28368db46ae89a3a990d85c10c2284aa2 |
| https://github.com/sidlovescoding/Cpython/blob/365451e28368db46ae89a3a990d85c10c2284aa2/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/365451e28368db46ae89a3a990d85c10c2284aa2 |
| gh-117225: Move colorize functionality to own internal module (#118283) | https://github.com/sidlovescoding/Cpython/commit/3b3f8dea575d81a9e68f04b434942d06bd03fad5 |
| https://github.com/hugovk |
| hugovk | https://github.com/sidlovescoding/Cpython/commits?author=hugovk |
| 3b3f8de | https://github.com/sidlovescoding/Cpython/commit/3b3f8dea575d81a9e68f04b434942d06bd03fad5 |
| https://github.com/sidlovescoding/Cpython/blob/3b3f8dea575d81a9e68f04b434942d06bd03fad5/Lib/_colorize.py |
| https://github.com/sidlovescoding/Cpython/tree/3b3f8dea575d81a9e68f04b434942d06bd03fad5 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |