(sentence)
| 74 | |
| 75 | |
| 76 | def strdecode(sentence): |
| 77 | if not isinstance(sentence, text_type): |
| 78 | try: |
| 79 | sentence = sentence.decode('utf-8') |
| 80 | except UnicodeDecodeError: |
| 81 | sentence = sentence.decode('gbk', 'ignore') |
| 82 | return sentence |
| 83 | |
| 84 | |
| 85 | def resolve_filename(f): |
no outgoing calls
no test coverage detected
searching dependent graphs…