Projet

Général

Profil

Révision 14ff36a3

ID14ff36a31c3bbbc001424d255b746e3e8664d82b
Parent 3509d2a6
Enfant b44373a1

Ajouté par Lars Kruse il y a environ 10 ans

hide the python code part from shell parsers

This works around a syntax warning of the continuous integration system.
The cause of this warning could have never triggered anyway.
This commit encloses the whole python code safely in a "here" document.

Voir les différences:

plugins/network/ath9k_
53 53
    python3 "$0" "$@"
54 54
fi
55 55
exit $?
56

  
57
# For shell: ignore everything starting from here until the last line of this file.
58
# This is necessary for syntax checkers that try to complain about invalid shell syntax below.
59
true <<EOF
56 60
"""
57 61

  
58 62

  
......
450 454
    # output values
451 455
    for item in ath9k.get_values(get_scope()):
452 456
        print(item)
457

  
458
# final marker for shell / python hybrid script (see "Interpreter Selection")
459
EOF = True
460
EOF

Formats disponibles : Unified diff