Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/compat.py @ 348:396d8d9aaead
Mark the use of "unichr()" with "noqa: F821" because of flake8 complaints when running it with Python3
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 23 Jun 2021 15:00:37 +0200 |
| parents | 98490375d90c |
| children | ce2a8f5a2fb2 |
comparison
equal
deleted
inserted
replaced
| 347:d7daec119383 | 348:396d8d9aaead |
|---|---|
| 67 # WinNT and CE have native Unicode support: nothing to convert | 67 # WinNT and CE have native Unicode support: nothing to convert |
| 68 return s | 68 return s |
| 69 return s.encode(_FS_ENCODING) | 69 return s.encode(_FS_ENCODING) |
| 70 | 70 |
| 71 def uchr(n): | 71 def uchr(n): |
| 72 return unichr(n) | 72 return unichr(n) # noqa: F821 |
| 73 | 73 |
| 74 else: | 74 else: |
| 75 | 75 |
| 76 def text_to_native_os_str(s, encoding=None): | 76 def text_to_native_os_str(s, encoding=None): |
| 77 return s | 77 return s |
