Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
b48e0e9e
Commit
b48e0e9e
authored
Sep 10, 2013
by
Guillaume Poulin
Browse files
Restore utf-8 compatibility for python 2
parent
59ada9b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyqtgraph/exporters/SVGExporter.py
View file @
b48e0e9e
...
...
@@ -92,8 +92,8 @@ class SVGExporter(Exporter):
md
.
setData
(
'image/svg+xml'
,
QtCore
.
QByteArray
(
xml
.
encode
(
'UTF-8'
)))
QtGui
.
QApplication
.
clipboard
().
setMimeData
(
md
)
else
:
with
open
(
fileName
,
'w
t
'
)
as
fh
:
fh
.
write
(
asUnicode
(
xml
))
with
open
(
fileName
,
'w
b
'
)
as
fh
:
fh
.
write
(
asUnicode
(
xml
)
.
encode
(
'utf-8'
)
)
xmlHeader
=
"""
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment