remove unused yesno helper

This commit is contained in:
Yuming Zhu 2023-10-17 19:57:01 +08:00 committed by Yu Ming Zhu
parent 241daabecd
commit 70518c01a1

View file

@ -925,10 +925,3 @@ class DatetimeJSONEncoder(json.JSONEncoder):
if isinstance(o, xmlrpc_client.DateTime):
return str(o)
return json.JSONEncoder.default(self, o)
def yesno(x):
if x:
return 'Y'
else:
return 'N'