From 26f8bc1dee8cd60ecc9e37f657e8f85188d23086 Mon Sep 17 00:00:00 2001
From: Anders Blomdell <anders.blomdell@control.lth.se>
Date: Fri, 9 Nov 2018 11:27:55 +0100
Subject: [PATCH] Make python2 explicit in shabang

---
 compiler/2006/Python_CodeGen.jrag          | 2 +-
 examples/duck_typing/duck_typing.py        | 2 +-
 examples/simple/example_encoder.py         | 2 +-
 examples/tcp/example_tcp_client_decoder.py | 2 +-
 examples/user_types/example_encoder.py     | 2 +-
 examples/wiki_example/example_decoder.py   | 2 +-
 lib/c/version_compare.py                   | 2 +-
 lib/python/labcomm2006/LabComm.py          | 2 +-
 test/relay_gen_c.py                        | 2 +-
 test/relay_gen_cs.py                       | 2 +-
 test/relay_gen_java.py                     | 2 +-
 test/test_encoder_decoder.py               | 2 +-
 test/test_errors.py                        | 2 +-
 13 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/compiler/2006/Python_CodeGen.jrag b/compiler/2006/Python_CodeGen.jrag
index 6589b63..842738e 100644
--- a/compiler/2006/Python_CodeGen.jrag
+++ b/compiler/2006/Python_CodeGen.jrag
@@ -74,7 +74,7 @@ aspect Python_CodeGen {
 
   public void Program.Python_gen(PrintStream out, String baseName) {
     Python_env env = new Python_env(out);
-    env.println("#!/usr/bin/python");
+    env.println("#!/usr/bin/python2");
     env.println("# Auto generated " + baseName);
     env.println();
     env.println("import labcomm2006");
diff --git a/examples/duck_typing/duck_typing.py b/examples/duck_typing/duck_typing.py
index c49f334..326dbe3 100755
--- a/examples/duck_typing/duck_typing.py
+++ b/examples/duck_typing/duck_typing.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import labcomm2006
 import animal
diff --git a/examples/simple/example_encoder.py b/examples/simple/example_encoder.py
index c89f134..837cd42 100755
--- a/examples/simple/example_encoder.py
+++ b/examples/simple/example_encoder.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import labcomm
 import sys
diff --git a/examples/tcp/example_tcp_client_decoder.py b/examples/tcp/example_tcp_client_decoder.py
index bf4f921..cb1609f 100755
--- a/examples/tcp/example_tcp_client_decoder.py
+++ b/examples/tcp/example_tcp_client_decoder.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 import sys
diff --git a/examples/user_types/example_encoder.py b/examples/user_types/example_encoder.py
index cdd2135..efe468c 100755
--- a/examples/user_types/example_encoder.py
+++ b/examples/user_types/example_encoder.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import labcomm
 import sys
diff --git a/examples/wiki_example/example_decoder.py b/examples/wiki_example/example_decoder.py
index 03b01c7..2988290 100755
--- a/examples/wiki_example/example_decoder.py
+++ b/examples/wiki_example/example_decoder.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import labcomm
 import sys
diff --git a/lib/c/version_compare.py b/lib/c/version_compare.py
index ad2c1b1..bea41ee 100755
--- a/lib/c/version_compare.py
+++ b/lib/c/version_compare.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 import sys
diff --git a/lib/python/labcomm2006/LabComm.py b/lib/python/labcomm2006/LabComm.py
index 70f3899..432e5d6 100644
--- a/lib/python/labcomm2006/LabComm.py
+++ b/lib/python/labcomm2006/LabComm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # LabComm2006 packets has the following layout
 #
diff --git a/test/relay_gen_c.py b/test/relay_gen_c.py
index cc5e45e..86745d7 100755
--- a/test/relay_gen_c.py
+++ b/test/relay_gen_c.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import re
 import sys
diff --git a/test/relay_gen_cs.py b/test/relay_gen_cs.py
index 9e01063..0a49d57 100755
--- a/test/relay_gen_cs.py
+++ b/test/relay_gen_cs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import re
 import sys
diff --git a/test/relay_gen_java.py b/test/relay_gen_java.py
index 39252c1..e97dae4 100755
--- a/test/relay_gen_java.py
+++ b/test/relay_gen_java.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import re
 import sys
diff --git a/test/test_encoder_decoder.py b/test/test_encoder_decoder.py
index 9e7574d..0370a02 100755
--- a/test/test_encoder_decoder.py
+++ b/test/test_encoder_decoder.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # -*- coding: utf-8 -*-
 
 import argparse
diff --git a/test/test_errors.py b/test/test_errors.py
index 24b9627..5cbba59 100755
--- a/test/test_errors.py
+++ b/test/test_errors.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import sys
 import argparse
-- 
GitLab