intel/genxml: drop python 2 support for gen_sort_tags.py
authorEric Engestrom <eric@engestrom.ch>
Fri, 5 Jun 2020 14:41:44 +0000 (16:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 13 Jun 2020 01:16:17 +0000 (01:16 +0000)
Python 2 is dead and this script is only run by devs, all of which have
had python3 available for basically forever.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5362>

src/intel/genxml/gen_sort_tags.py

index 10fe8d4b178bcfc83def2896e541a3d3323ef6e3..3b1b1afe25483cb3b23307c9288abfeb5407568f 100755 (executable)
@@ -1,6 +1,4 @@
-#!/usr/bin/env python
-#encoding=utf-8
-#
+#!/usr/bin/env python3
 # Copyright © 2019 Intel Corporation
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
@@ -23,7 +21,6 @@
 # IN THE SOFTWARE.
 #
 
-from __future__ import print_function
 from collections import OrderedDict
 import os
 import pathlib