13 Commits

Author SHA1 Message Date
Clayton Smith
24acd82b02 grc: remove six 2020-10-05 09:36:11 +02:00
Oleksandr Kravchuk
43e6a43e3d python: Remove unnecessary 'from __future__ import'
All of the removed `from __future__ import` were needed in older
versions of Python (mostly 2.5.x and below) but later became mandatory
in most versions of Python 3 hence are not necessary anymore.

More specifically, according to __future__.py[1]:
- unicode_literals is part of Python since versions 2.6.0 and 3.0.0;
- print_function is part of Python since versions 2.6.0 and 3.0.0;
- absolute_import is part of Python since versions 2.5.0 and 3.0.0;
- division is part of Python since versions 2.2.0 and 3.0.0;

Get rid of those unnecessary imports to slightly clean up the codebase.

[1] https://github.com/python/cpython/blob/master/Lib/__future__.py
2020-08-03 11:40:27 +02:00
Håkon Vågsether
ac2e9b9385 grc: Fix failing expr_utils test
Caused by switch from Python 2 to 3: https://docs.python.org/3/whatsnew/3.0.html#ordering-comparisons
2020-02-03 23:12:56 -08:00
devnulling
9a453c2ca6 Update license header to SPDX format 2020-01-27 19:56:21 -08:00
Sebastian Koslowski
113d266349 grc: added yaml/mako support
Includes basic converter from XML/Cheetah to YAML/Mako based block format.
2017-06-29 09:16:49 -07:00
Seth Hitefield
b4cd681e1c grc: gtk3: Converted actions to Gio.Action instead of Gtk.Action 2017-05-03 07:07:59 -07:00
Sebastian Koslowski
6a4e210aa1 Merge remote-tracking branch 'grcwg/next_grcwg' into gtk3 2016-07-13 16:30:36 +02:00
Sebastian Koslowski
b9881b6ff5 grc: py3k compat using python-modernize 2016-06-09 14:47:35 +02:00
Sebastian Koslowski
e51a1dafe6 grc: faulty callback code if setter call contained a variable block id
(do-over of c85984f105106ff0a7e3b387d680e0f2f5884d55)

If a block contains a callback of the form

    self.block_id.param = $param

the generators subst routine produced

    self.block_id.self.param = self.param

due to a faulty splitting of the expression in expr_utils.py.

This should fix this problem by not tokenizing "VAR0.VAR1".
2016-05-25 16:27:24 +02:00
Sebastian Koslowski
43f8cf951d grc-refactor: minor clean-up of callback generator code 2016-05-25 16:26:31 +02:00
Sebastian Koslowski
10909b5fa9 Revert "grc: fix callback evaluation"
This reverts commit c85984f105106ff0a7e3b387d680e0f2f5884d55.
2016-05-21 13:50:48 +02:00
Sebastian Koslowski
c1032da2f2 grc: fix callback evaluation 2016-04-27 16:47:08 +02:00
Sebastian Koslowski
5a8765f712 grc-refactor: cmake fixes and more reorganizing 2016-02-17 19:55:17 +01:00