-- in py3 raises an error if it's not str already.
(self, filename)
| 360 | return s |
| 361 | |
| 362 | def filename_to_str(self, filename): |
| 363 | """ |
| 364 | -- in py3 raises an error if it's not str already. |
| 365 | """ |
| 366 | if filename.__class__ != str: |
| 367 | raise AssertionError("Expected to have str on Python 3. Found: %s (%s)" % (filename, filename.__class__)) |
| 368 | return filename |
| 369 | |
| 370 | def filename_to_server(self, filename): |
| 371 | filename = self.filename_to_str(filename) |
no outgoing calls
no test coverage detected