(self, file_name, code_type, time_out)
| 71 | return response and response['text'] or '' |
| 72 | |
| 73 | def decode(self, file_name, code_type, time_out): |
| 74 | cid = self.upload(file_name, code_type, time_out) |
| 75 | if cid > 0: |
| 76 | for i in range(0, time_out): |
| 77 | result = self.result(cid) |
| 78 | if result != '': |
| 79 | return cid, result |
| 80 | else: |
| 81 | time.sleep(1) |
| 82 | return -3003, '' |
| 83 | else: |
| 84 | return cid, '' |
| 85 | |
| 86 | def post_url(self, url, fields, files=[]): |
| 87 | for key in files: |
no test coverage detected