MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / translateCoding

Method translateCoding

MCSL2Lib/variables.py:342–348  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

initializeMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected