(self,val,encoding='utf-8')
| 115 | |
| 116 | # binary output |
| 117 | def write(self,val,encoding='utf-8'): |
| 118 | if isinstance(val,str): |
| 119 | self.f.write(val.encode(encoding)) |
| 120 | else: |
| 121 | self.f.write(val) |
| 122 | |
| 123 | def write_type(self,val,type): |
| 124 | if hasattr(val,'__iter__'): |
no outgoing calls
no test coverage detected