Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHGa4478f74ad56: py3: handle keyword arguments correctly in color.py
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
| durin42 |
| hg-reviewers |
| Lint Skipped |
| Unit Tests Skipped |
| ansire = re.compile('\033\[([^m]*)m([^\033]*)(.*)', | ansire = re.compile('\033\[([^m]*)m([^\033]*)(.*)', | ||||
| re.MULTILINE | re.DOTALL) | re.MULTILINE | re.DOTALL) | ||||
| def win32print(ui, writefunc, *msgs, **opts): | def win32print(ui, writefunc, *msgs, **opts): | ||||
| for text in msgs: | for text in msgs: | ||||
| _win32print(ui, text, writefunc, **opts) | _win32print(ui, text, writefunc, **opts) | ||||
| def _win32print(ui, text, writefunc, **opts): | def _win32print(ui, text, writefunc, **opts): | ||||
| label = opts.get('label', '') | label = opts.get(r'label', '') | ||||
| attr = origattr | attr = origattr | ||||
| def mapcolor(val, attr): | def mapcolor(val, attr): | ||||
| if val == -1: | if val == -1: | ||||
| return origattr | return origattr | ||||
| elif val in passthrough: | elif val in passthrough: | ||||
| return attr | val | return attr | val | ||||
| elif val > 0x0f: | elif val > 0x0f: | ||||