(self)
| 340 | return self |
| 341 | |
| 342 | def translateCoding(self): |
| 343 | if self.outputDecoding == "follow": |
| 344 | self.outputDecoding = cfg.get(cfg.outputDeEncoding) |
| 345 | if self.inputEncoding == "follow": # 跟随全局 |
| 346 | self.inputEncoding = cfg.get(cfg.inputDeEncoding) |
| 347 | if self.inputEncoding == "follow": # 跟随输出 |
| 348 | self.inputEncoding = self.outputDecoding |
| 349 | |
| 350 | |
| 351 | @Singleton |