Skip to contentSkip to conversation

utils/get-developers: fix syntax error

PATCH New Grégoire Delattre 2 participants 2 messages Oct 11, 2018 – Oct 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/get-developers: fix syntax error

From: Gr?goire Delattre <[email protected]>

This fixes a syntax error introduced in bcf2ed5cc3.

Output before the patch:

    $ ./utils/get-developers outgoing/*
        File "./utils/get-developers", line 97
            print dev
                    ^
        SyntaxError: Missing parentheses in call to 'print'. Did you mean
        print(dev)?

Output after the patch:

    $ ./utils/get-developers outgoing/*
    git send-email --to buildroot at buildroot.org
---
 utils/get-developers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/get-developers +1 -1
index 9135b41662..ce882e6699 100755
@@ -94,7 +94,7 @@ def __main__():
 
         if args.email:
             for dev in matching_devs:
-                print dev
+                print(dev)
         else:
             result = "--to buildroot at buildroot.org"
             for dev in matching_devs:
Signature · 1 line
2.19.1
#1 lore raw

PATCH 1/1 utils/get-developers: fix syntax error

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gr?goire" == Gr?goire Delattre <[email protected]> writes:

From: Gr?goire Delattre <[email protected]> This fixes a syntax error introduced in bcf2ed5cc3.

Output before the patch:

    $ ./utils/get-developers outgoing/*
        File "./utils/get-developers", line 97
            print dev
                    ^
        SyntaxError: Missing parentheses in call to 'print'. Did you mean
        print(dev)?
Quoted 3 lines

Output after the patch:

    $ ./utils/get-developers outgoing/*
    git send-email --to buildroot at buildroot.org

Ahh, indeed - We need print(foo) instead of print foo for python 3.x compatibility.

Committed with the commit message extended to explain that this is for python 3.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard