Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: a960c9afb9825ac9c3629e416fd1aae310fec71f
https://github.com/tribe29/checkmk/commit/a960c9afb9825ac9c3629e416fd1aae31…
Author: Simon Jess <simon.jess(a)tribe29.com>
Date: 2019-07-03 (Wed, 03 Jul 2019)
Changed paths:
M cmk/gui/utils.py
Log Message:
-----------
test-futurize: fixed lib2to3.fixes.fix_exec
In Python 2, exec() was a statement. In Python 3, it is a function.
There were three cases for the statement form of exec:
exec some_code
exec some_code in globals
exec some_code in globals, locals
Similarly, the function exec takes one to three arguments:
exec(some_code)
exec(some_code, globals)
exec(some_code, globals, locals)
In Python 2, the syntax was extended so the first expression may be a 2-
or 3-tuple. This means the function-like syntax works even in Python 2.
Note:
yapf would format these lines like
exec (...)
Thus we disable yapf for these lines.
Change-Id: I180ded1f5e5e111cfd15c23d50a73c0ccba3cec6
Commit: 3f2a741b97b96c58c99fcf9f1ec61c13b9acd876
https://github.com/tribe29/checkmk/commit/3f2a741b97b96c58c99fcf9f1ec61c13b…
Author: Simon Jess <simon.jess(a)tribe29.com>
Date: 2019-07-03 (Wed, 03 Jul 2019)
Changed paths:
M tests/test-futurize
Log Message:
-----------
test-futurize: enabled lib2to3.fixes.fix_exec
Change-Id: Icaba07deb3cdf9b01ecb13fdb583ab16822cfd86
Compare:
https://github.com/tribe29/checkmk/compare/dfed5ab94f6a...3f2a741b97b9