Package: yaws / 2.0.8+dfsg-3

python3.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- a/www/cgi-bin/foo.py
+++ b/www/cgi-bin/foo.py
@@ -1,8 +1,8 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 import cgi
 
-print "Content-type: text/html\n\n"
+print("Content-type: text/html\n\n")
 
-print "hi there "
+print("hi there ")
 
--- a/www/cgi.yaws
+++ b/www/cgi.yaws
@@ -52,12 +52,12 @@
 <div class="box">        
       <verbatim>
 
-#!/usr/bin/python
+#!/usr/bin/python3
 
 import cgi
 
-print "Content-type: text/html\n\n"
-print "<h1>hi there </h1>"
+print("Content-type: text/html\n\n")
+print("<h1>hi there </h1>")
       </verbatim>
 </div>
 <p>
--- a/Makefile.am
+++ b/Makefile.am
@@ -114,7 +114,7 @@
 dialyzer: all yaws.plt
 	$(AM_V_at)$(DIALYZER) -q --plt yaws.plt -r ebin | \
 	    sed -e :a -e '$$!N;s/\n  *//;ta' -e 'P;D' > dialyzer_warnings || true
-	$(AM_V_at)python dialyzer_checker
+	$(AM_V_at)python3 dialyzer_checker
 
 dist-hook: clean  cleantest cleanapps
 	$(AM_V_at)for a in $(APPDIRS); do			\
--- a/dialyzer_checker
+++ b/dialyzer_checker
@@ -1,5 +1,5 @@
-#!/usr/bin/env python
-from __future__ import absolute_import, division, print_function
+#!/usr/bin/env python3
+
 import os
 import re
 import sys