projects
/
pyutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More messing with the project file.
[pyutils.git]
/
src
/
pyutils
/
ansi.py
diff --git
a/src/pyutils/ansi.py
b/src/pyutils/ansi.py
index 00323baaf8f71d9bcaff6b3bb86b4f59163fe2b3..3c289f9b5b4371ad9af3762bd2c6ea48bc6ca6dd 100755
(executable)
--- a/
src/pyutils/ansi.py
+++ b/
src/pyutils/ansi.py
@@
-2269,10
+2269,10
@@
class ProgrammableColorizer(_StdoutInterceptor):
could just as easily insert escape sequences returned from
:py:meth:`fg`, :py:meth:`bg`, and :py:meth:`reset`.
could just as easily insert escape sequences returned from
:py:meth:`fg`, :py:meth:`bg`, and :py:meth:`reset`.
- >>> def red(match: re.Match
, s: str
) -> str:
+ >>> def red(match: re.Match) -> str:
... return '[RED]'
... return '[RED]'
- >>> def reset(match: re.Match
, s: str
) -> str:
+ >>> def reset(match: re.Match) -> str:
... return '[RESET]'
>>> with ProgrammableColorizer( [ (re.compile('^[^ ]+'), red),
... return '[RESET]'
>>> with ProgrammableColorizer( [ (re.compile('^[^ ]+'), red),