(self, process)
| 77 | raise CRCError(err) |
| 78 | |
| 79 | def progress(self, process): |
| 80 | s = "" |
| 81 | while True: |
| 82 | c = process.stdout.read(1) |
| 83 | #: Quit loop on eof |
| 84 | if not c: |
| 85 | break |
| 86 | #: Reading a percentage sign -> set progress and restart |
| 87 | if c == "%" and s: |
| 88 | self.pyfile.setProgress(int(s)) |
| 89 | s = "" |
| 90 | #: Not reading a digit -> therefore restart |
| 91 | elif c not in string.digits: |
| 92 | s = "" |
| 93 | #: Add digit to progressstring |
| 94 | else: |
| 95 | s += c |
| 96 | |
| 97 | |
| 98 | def extract(self, password=None): |
no test coverage detected