python: Material: *.py: Fix syntax for Python 3
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user