equal
deleted
inserted
replaced
573 |
573 |
574 pygments.highlight # silence unused import warning |
574 pygments.highlight # silence unused import warning |
575 return True |
575 return True |
576 except ImportError: |
576 except ImportError: |
577 return False |
577 return False |
|
578 |
|
579 |
|
580 @check("pygments25", "Pygments version >= 2.5") |
|
581 def pygments25(): |
|
582 try: |
|
583 import pygments |
|
584 |
|
585 v = pygments.__version__ |
|
586 except ImportError: |
|
587 return False |
|
588 |
|
589 parts = v.split(".") |
|
590 major = int(parts[0]) |
|
591 minor = int(parts[1]) |
|
592 |
|
593 return (major, minor) >= (2, 5) |
578 |
594 |
579 |
595 |
580 @check("outer-repo", "outer repo") |
596 @check("outer-repo", "outer repo") |
581 def has_outer_repo(): |
597 def has_outer_repo(): |
582 # failing for other reasons than 'no repo' imply that there is a repo |
598 # failing for other reasons than 'no repo' imply that there is a repo |