[PATCH] backports: specify python2.7 for gentree.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Apparently gentree.py uses some python2.7 specific syntax. Fixes:

./gentree.py -h
  File "./gentree.py", line 72
    except OSError, e:
                  ^
SyntaxError: invalid syntax

On distros where /usr/bin/python points to python3.

Signed-off-by: Thomas Pedersen <thomas@xxxxxxxxxxx>
---
 gentree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gentree.py b/gentree.py
index fef2faf..e43f508 100755
--- a/gentree.py
+++ b/gentree.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.7
 #
 # Generate the output tree into a specified directory.
 #
-- 
1.8.3

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux