summaryrefslogtreecommitdiffstats
path: root/tools/fileslist.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fileslist.py')
-rwxr-xr-xtools/fileslist.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/fileslist.py b/tools/fileslist.py
index a11efaa..1538a30 100755
--- a/tools/fileslist.py
+++ b/tools/fileslist.py
@@ -15,11 +15,13 @@
# limitations under the License.
#
+from __future__ import print_function
+
import operator, os, sys
def get_file_size(path):
st = os.lstat(path)
- return st.st_size;
+ return st.st_size
def main(argv):
output = []
@@ -39,7 +41,7 @@ def main(argv):
pass
output.sort(key=operator.itemgetter(0), reverse=True)
for row in output:
- print "%12d %s" % row
+ print("%12d %s" % row)
if __name__ == '__main__':
main(sys.argv)