from __future__ import print_function

Without this change, the `end` and `file` parameters 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:53:37 +02:00 committed by GitHub
parent 5c4c3ba342
commit 79ff6147ba

View File

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