python: Material: *.py: Fix syntax for Python 3

This commit is contained in:
Priit Laes
2016-03-12 12:56:23 +02:00
committed by wmayer
parent 34a3039577
commit de89c2e178
2 changed files with 3 additions and 3 deletions

View File

@@ -126,7 +126,7 @@ def write(filename,dictionary):
if isinstance(filename,unicode):
import sys
filename = filename.encode(sys.getfilesystemencoding())
print filename
print(filename)
f = pythonopen(filename,"wb")
f.write("; " + header["CardName"].encode("utf8") + "\n")
f.write("; " + header["AuthorAndLicense"].encode("utf8") + "\n")