/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/export_pot.py

  • Committer: Martin
  • Date: 2018-06-30 22:18:39 UTC
  • mfrom: (7010 work)
  • mto: This revision was merged to the branch mainline in revision 7012.
  • Revision ID: gzlist@googlemail.com-20180630221839-98zi78xwcggestse
Merge trunk to fix conflict

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        else:
151
151
            comment = "# %s\n" % comment
152
152
        mutter("Exporting msg %r at line %d in %r", s[:20], lineno, path)
153
 
        self.outf.write(
 
153
        line = (
154
154
            "#: {path}:{lineno}\n"
155
155
            "{comment}"
156
156
            "msgid {msg}\n"
157
157
            "msgstr \"\"\n"
158
158
            "\n".format(
159
159
                path=path, lineno=lineno, comment=comment, msg=_normalize(s)))
 
160
        self.outf.write(line.encode('utf-8'))
160
161
 
161
162
    def poentry_in_context(self, context, string, comment=None):
162
163
        context = context.from_string(string)