Commit 903c338b authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix compatibility issue with newer version of PySide2

parent 1dadcc61
......@@ -23,7 +23,7 @@ import importlib
import logging
import traceback
import hashlib
from PySide2.QtCore import QProcess, QFile
from PySide2.QtCore import QProcess, QFile, QIODevice
from . import icons
......@@ -157,7 +157,7 @@ def parse_asn1(*files, **options):
if pprint:
# Generate an html file with pretty-printed ASN.1 types
stg_qrc = QFile(':misc/pretty_print_asn1.stg')
content = stg_qrc.readAll()
stgfile = outdir + os.sep + 'pretty_print_asn1.stg'
with open(stgfile, 'wb') as tmpfile:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment