Show More
@@ -544,6 +544,16 b' def has_py3k():' | |||
|
544 | 544 | def has_python3exe(): |
|
545 | 545 | return 'PYTHON3' in os.environ |
|
546 | 546 | |
|
547 | @check("py3pygments", "Pygments available on Python 3.x") | |
|
548 | def has_py3pygments(): | |
|
549 | if has_py3k(): | |
|
550 | return has_pygments() | |
|
551 | elif has_python3exe(): | |
|
552 | # just check exit status (ignoring output) | |
|
553 | py3 = os.environ['PYTHON3'] | |
|
554 | return matchoutput('%s -c "import pygments"' % py3, br'') | |
|
555 | return False | |
|
556 | ||
|
547 | 557 | @check("pure", "running with pure Python code") |
|
548 | 558 | def has_pure(): |
|
549 | 559 | return any([ |
@@ -12,7 +12,7 b'' | |||
|
12 | 12 | setup.py not using absolute_import |
|
13 | 13 | tests/test-demandimport.py not using absolute_import |
|
14 | 14 | |
|
15 | #if py3exe | |
|
15 | #if py3exe py3pygments | |
|
16 | 16 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py |
|
17 | 17 | doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
18 | 18 | hgext/acl.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob) |
@@ -48,7 +48,7 b'' | |||
|
48 | 48 | hgext/gpg.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob) |
|
49 | 49 | hgext/graphlog.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob) |
|
50 | 50 | hgext/hgk.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob) |
|
51 |
hgext/highlight/highlight.py: error importing |
|
|
51 | hgext/highlight/highlight.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob) | |
|
52 | 52 | hgext/histedit.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob) |
|
53 | 53 | hgext/journal.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob) |
|
54 | 54 | hgext/keyword.py: error importing: <TypeError> str expected, not bytes (error at encoding.py:*) (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now