(self)
| 2299 | return chars |
| 2300 | |
| 2301 | def _get_locale_encoding(self): |
| 2302 | try: |
| 2303 | import locale |
| 2304 | except ImportError: |
| 2305 | # Importing locale may fail if Python is being built |
| 2306 | return "utf-8" |
| 2307 | else: |
| 2308 | return locale.getencoding() |
| 2309 | |
| 2310 | def _rewind_decoded_chars(self, n): |
| 2311 | """Rewind the _decoded_chars buffer.""" |
no outgoing calls
no test coverage detected