Skip to content

Commit

Permalink
removing a python 2 remnant
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 10, 2020
1 parent a51def5 commit 696de0e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions foliatools/rst2folia.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,7 @@ def initstructure(self, tag, **attribs):
if attribs:
for key, value in attribs.items():
if key == "cls": key = "class"
if sys.version < '3':
o += " " + key + "=\"" + unicode(value) + "\""
elif sys.version >= '3':
o += " " + key + "=\"" + str(value) + "\""
o += " " + key + "=\"" + str(value) + "\""
o += ">\n"
self.content.append(o)

Expand Down

0 comments on commit 696de0e

Please sign in to comment.