(self)
| 2323 | return chars |
| 2324 | |
| 2325 | def _get_locale_encoding(self): |
| 2326 | try: |
| 2327 | import locale |
| 2328 | except ImportError: |
| 2329 | # Importing locale may fail if Python is being built |
| 2330 | return "utf-8" |
| 2331 | else: |
| 2332 | return locale.getencoding() |
| 2333 | |
| 2334 | def _rewind_decoded_chars(self, n): |
| 2335 | """Rewind the _decoded_chars buffer.""" |
no outgoing calls
no test coverage detected