from __future__ import print_function

Without this change, the `file` parameter in print() causes problems in Python 2.  This approach makes print(x, file=filename) valid syntax in both Python 2 and Python 3.
This commit is contained in:
cclauss 2017-08-21 11:51:54 +02:00 committed by GitHub
parent aa12404c09
commit 5c4c3ba342

View File

@ -8,6 +8,7 @@
# Version: 0.1 # Version: 0.1
# Description: A very simple python script that can sort items alphabetically. # Description: A very simple python script that can sort items alphabetically.
from __future__ import print_function
import os import os
import shutil import shutil