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:
parent
aa12404c09
commit
5c4c3ba342
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user