def resx2po(self, resxsource, template=None, filter=None): """ Helper that converts resx source to po source without requiring files """ inputfile = wStringIO.StringIO(resxsource) inputresx = resx.RESXFile(inputfile) convertor = resx2po.resx2po() outputpo = convertor.convert_store(inputresx) return outputpo
def resx2po(resxsource, template=None, filter=None): """Helper that converts resx source to po source without requiring files""" inputfile = BytesIO(resxsource.encode()) inputresx = resx.RESXFile(inputfile) convertor = resx2po.resx2po() return convertor.convert_store(inputresx)