Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/util/cm.py @ 196:0f4febf646f5
Prepare for more Python2/3 compatibility: everywhere import print_function and absolute_import
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 16 Jan 2025 20:01:37 +0100 |
| parents | dfe7bb0579e2 |
| children | 48430941c18c |
comparison
equal
deleted
inserted
replaced
| 195:e5f6f4db9157 | 196:0f4febf646f5 |
|---|---|
| 4 # :License: BSD-3-Clause | 4 # :License: BSD-3-Clause |
| 5 # :- | 5 # :- |
| 6 r"""Context manager extensions and compatibility. | 6 r"""Context manager extensions and compatibility. |
| 7 | 7 |
| 8 """ | 8 """ |
| 9 | |
| 10 from __future__ import print_function, absolute_import | |
| 11 | |
| 9 | 12 |
| 10 __all__ = ["nullcontext"] | 13 __all__ = ["nullcontext"] |
| 11 | 14 |
| 12 | 15 |
| 13 try: | 16 try: |
