9 Commits

Author SHA1 Message Date
Joel Brobecker
2d7ef76b2a Remove import of __future__.print_function in hooks/*
Now that Python 3.x is required, this import is no longer useful.
Note that this commit deliberately excludes the imports done
in the testsuite, so as to allow these changes to be reviewed
independently of the changes to be made in the testsuite.

Change-Id: I28e1857df2cf0b2f9e7ddeab00b456d6ef513755
TN: U530-006
2021-11-30 17:58:55 +04:00
Joel Brobecker
23cc50ec72 syshooks/syslog.py: Decode the output returned by the logger
This is another preparation patch for the transition to python 3.x.
With Python 3.x, the output we get from the logger is going to be
a byte string, which we need to then decode into a string.

Change-Id: I2307b90f2e2cccaed8a93fa589f82fba0064c28b
TN: U530-006
2021-10-06 11:27:20 -07:00
Joel Brobecker
a075b1653e reformat all the code using black
Change-Id: Idbc70777233ab2d40ab59765abb9cbbeeb88ec63
2021-04-18 14:59:01 +04:00
Simon Marchi
a2909b2c8d Convert print statements to print function
In preparation for the transition to Python 3, convert to using the
print function.  The special import

    from __future__ import print_function

in Python 2.7 makes "print" become the function and not the statement.
In Python 3, it has no effect.  Once the transition is done and we
exclusively use Python 3, we can simply remove the imports.

The testsuite shows no regressions.
2020-11-22 19:29:38 -05:00
Joel Brobecker
168de73a97 transition default style checker to style_checker
For NA17-007.
2017-05-18 09:34:27 -07:00
Joel Brobecker
c43ac46b79 syslog.py: Fix style issue.
Part of NA17-007.
2017-05-18 09:34:25 -07:00
Joel Brobecker
e9758dbb83 syslog.py: Remove dependency on gnatpython...
This is part of the effort to make the hooks themselves independent
of gnatpython, making it easier to use them outside of AdaCore.
2014-12-06 11:28:05 +04:00
Joel Brobecker
a751230699 syslog.py: Fix pep8 violations. 2013-12-26 14:52:10 +04:00
Joel Brobecker
6157951a8f syslog trace if .no_cvs_check file turns pre-commit checks off.
Update testsuite infrastructure to allow testing of syslog tracing
without actually filing a real syslog trace.

For L605-020.
2012-12-27 19:54:25 +04:00