Python pygments.__version__() Examples
The following are 2
code examples of pygments.__version__().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pygments
, or try the search function
.
Example #1
Source File: provision_inner.py From zulip with Apache License 2.0 | 5 votes |
def need_to_run_build_pygments_data() -> bool: if not os.path.exists("static/generated/pygments_data.json"): return True return is_digest_obsolete( "build_pygments_data_hash", build_pygments_data_paths(), [pygments_version], )
Example #2
Source File: __init__.py From mako with MIT License | 5 votes |
def requires_pygments_14(fn): try: import pygments version = pygments.__version__ except: version = "0" return skip_if( lambda: version < "1.4", "Requires pygments 1.4 or greater" )(fn)