mirror of
https://github.com/luong-komorebi/Awesome-Linux-Software.git
synced 2024-10-01 01:45:42 -04:00
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:
parent
5c4c3ba342
commit
79ff6147ba
@ -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