python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / x11r7 / xcb-proto / 0002-print-is-a-function-and-needs-parentheses.patch
blob6fa5d48de2fc5c64f7c1fb10aee7bb597d1199de
1 From bea5e1c85bdc0950913790364e18228f20395a3d Mon Sep 17 00:00:00 2001
2 From: Thomas Klausner <wiz@NetBSD.org>
3 Date: Thu, 19 May 2016 17:30:05 +0200
4 Subject: print() is a function and needs parentheses.
6 Fixes build with python-3.x.
8 Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
9 Signed-off-by: Uli Schlachter <psychon@znc.in>
10 [yann.morin.1998@free.fr: backport from upstream]
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
13 diff --git a/xcbgen/xtypes.py b/xcbgen/xtypes.py
14 index c3b5758..b83b119 100644
15 --- a/xcbgen/xtypes.py
16 +++ b/xcbgen/xtypes.py
17 @@ -501,7 +501,7 @@ class ComplexType(Type):
18 int(required_start_align_element.get('align', "4"), 0),
19 int(required_start_align_element.get('offset', "0"), 0))
20 if verbose_align_log:
21 - print "Explicit start-align for %s: %s\n" % (self, self.required_start_align)
22 + print ("Explicit start-align for %s: %s\n" % (self, self.required_start_align))
24 def resolve(self, module):
25 if self.resolved:
26 @@ -592,7 +592,7 @@ class ComplexType(Type):
27 if verbose_align_log:
28 print ("calc_required_start_align: %s has start-align %s"
29 % (str(self), str(self.required_start_align)))
30 - print "Details:\n" + str(log)
31 + print ("Details:\n" + str(log))
32 if self.required_start_align.offset != 0:
33 print (("WARNING: %s\n\thas start-align with non-zero offset: %s"
34 + "\n\tsuggest to add explicit definition with:"
35 @@ -619,12 +619,12 @@ class ComplexType(Type):
36 for offset in range(0,align):
37 align_candidate = Alignment(align, offset)
38 if verbose_align_log:
39 - print "trying %s for %s" % (str(align_candidate), str(self))
40 + print ("trying %s for %s" % (str(align_candidate), str(self)))
41 my_log = AlignmentLog()
42 if self.is_possible_start_align(align_candidate, callstack, my_log):
43 log.append(my_log)
44 if verbose_align_log:
45 - print "found start-align %s for %s" % (str(align_candidate), str(self))
46 + print ("found start-align %s for %s" % (str(align_candidate), str(self)))
47 return align_candidate
48 else:
49 my_ok_count = my_log.ok_count()
50 @@ -641,7 +641,7 @@ class ComplexType(Type):
51 # none of the candidates applies
52 # this type has illegal internal aligns for all possible start_aligns
53 if verbose_align_log:
54 - print "didn't find start-align for %s" % str(self)
55 + print ("didn't find start-align for %s" % str(self))
56 log.append(best_log)
57 return None
59 @@ -900,7 +900,7 @@ class SwitchType(ComplexType):
60 # aux function for unchecked_get_alignment_after
61 def get_align_for_selected_case_field(self, case_field, start_align, callstack, log):
62 if verbose_align_log:
63 - print "get_align_for_selected_case_field: %s, case_field = %s" % (str(self), str(case_field))
64 + print ("get_align_for_selected_case_field: %s, case_field = %s" % (str(self), str(case_field)))
65 total_align = start_align
66 for field in self.bitcases:
67 my_callstack = callstack[:]
68 --
69 cgit v0.10.2