8 Commits

Author SHA1 Message Date
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
devnulling
9a453c2ca6 Update license header to SPDX format 2020-01-27 19:56:21 -08:00
Josh Morman
a8d46de29c grc: embedded python module show_id flag
It is necessary to have access to the show_id flag for a python module
in grc to be able to access it elsewhere.  This adds the flag when the
module object is created in the block library.
2019-11-06 18:01:02 -08:00
Chris
5908dfe951 grc: embedded python parameter values disappear 2019-11-01 16:17:07 +01:00
Sebastian Koslowski
06d8b08f44 grc: fixes in epy and virtual blocks (fixes #2039) 2019-02-12 11:46:09 +01:00
Piotr Krysik
a0a1ae68ed grc: Fix missing default code in python block and python module 2019-02-10 20:09:32 +01:00
Håkon Vågsether
1eec0b3927 grc: Fix Python Module block
Before this fix, it was not possible to add a 'Python Module' to a GRC
flow graph, it would just throw exceptions when you tried.
2019-01-07 09:36:13 -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