Verified Commit f9dd80f6 authored by ita1024's avatar ita1024

Update filters to Python3

parent 93ab5e60
Semantik 1.0.3
--------------
* Updated import filters to Python3 syntax #83
Semantik 1.0.2
--------------
* Fix truncated saved documents in combination with accentuated characters
......
Semantik 1.0.0, Thomas Nagy
contact: tnagy at waf.io
Semantik 1.0.3, Thomas Nagy tnagy at waf.io
Project page: https://waf.io/semantik.html
Source code: https://github.com/ita1024/semantik
-----------------------------------------------
......@@ -83,3 +82,12 @@ semantik-d diag.semd -o foo.pdf
GPL V3
-----------------------------------------------
5. Quirks:
If you are getting screen artifacts when dragging and selecting elements,
try changing the QtCurve Qt widget style to Breeze for example (Ubuntu 17.10).
-----------------------------------------------
......@@ -2,7 +2,7 @@
# encoding: utf-8
# Thomas Nagy, 2007-2018 GPLV3
import os, sys, tarfile, StringIO
import os, sys, tarfile, io
from xml.sax import make_parser
from xml.sax.handler import ContentHandler
......@@ -113,7 +113,7 @@ def parse_string(s):
parser = make_parser()
curHandler = FFHandler()
parser.setContentHandler(curHandler)
parser.parse(StringIO.StringIO(str(s)))
parser.parse(io.StringIO(str(s)))
return "".join(curHandler.out)
def parse_file(infile):
......
......@@ -2,7 +2,7 @@
# encoding: utf-8
# Thomas Nagy, 2007-2018 GPLV3
import os, sys, tarfile, StringIO
import os, sys, tarfile, io
from xml.sax import make_parser
from xml.sax.handler import ContentHandler
......@@ -110,7 +110,7 @@ def parse_string(s):
parser = make_parser()
curHandler = QTXMLHandler()
parser.setContentHandler(curHandler)
parser.parse(StringIO.StringIO(str(s)))
parser.parse(io.StringIO(str(s)))
return "".join(curHandler.out)
def parse_file(infile):
......@@ -125,7 +125,7 @@ def parse_file(infile):
if x[:4] != 'pic-': continue
y = (x[4:].split('.'))[0]
map[y] = x
k = map.keys()
k = list(map.keys())
k.sort()
k.reverse()
for u in k:
......
......@@ -2,7 +2,7 @@
# encoding: utf-8
# Thomas Nagy, 2007-2018 GPLV3
import os, sys, tarfile, StringIO
import os, sys, tarfile, io
from xml.sax import make_parser
from xml.sax.handler import ContentHandler
......@@ -100,7 +100,7 @@ def parse_string(s):
parser = make_parser()
curHandler = FFHandler()
parser.setContentHandler(curHandler)
parser.parse(StringIO.StringIO(str(s)))
parser.parse(io.StringIO(str(s)))
return "".join(curHandler.out)
def parse_file(infile):
......
......@@ -3,7 +3,7 @@
# Thomas Nagy, 2007-2016 GPLV3
APPNAME = 'semantik'
VERSION = '1.0.2'
VERSION = '1.0.3'
top = '.'
......
Markdown is supported
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