Projects
openEuler:Mainline
gnome-doc-utils
_service:tar_scm:gnome-doc-utils-0.20.10-python...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:gnome-doc-utils-0.20.10-python3-issues.patch of Package gnome-doc-utils
diff --git a/xml2po/xml2po/__init__.py b/xml2po/xml2po/__init__.py index 00f4bbd..100f19b 100644 --- a/xml2po/xml2po/__init__.py +++ b/xml2po/xml2po/__init__.py @@ -464,7 +464,7 @@ class XMLDocument(object): norm_outtxt = self.normalizeString(outtxt, self.app.isSpacePreserveNode(node)) translation = self.app.getTranslation(norm_outtxt) else: - translation = outtxt.decode('utf-8') + translation = outtxt.encode('utf-8').decode('utf-8') starttag = self.startTagForNode(node) endtag = self.endTagForNode(node) @@ -556,7 +556,7 @@ class Main(object): elif output == '-': self.out = sys.stdout else: - self.out = file(output, 'w') + self.out = open(output, 'w') def load_mode(self, modename): try:
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2