summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2019-05-01 19:29:24 -0400
committerPaul Moore <paul@paul-moore.com>2019-05-01 20:01:42 -0400
commitd390edad9a8540c2e2dd0b12732cc8dd3fe1cc69 (patch)
tree022e98be8d97834d0c84b00e231a79725bdb1a5b /src/python
parent3570b5cf9acbd1711d417e08ec608eea7b83d416 (diff)
downloadlibseccomp-d390edad9a8540c2e2dd0b12732cc8dd3fe1cc69.tar.gz
python: use Cython language "3str"
Set the Cython language level to "3str" which is described in the Cython 0.29 changelog: "A new language level name 3str was added that mostly corresponds to language level 3, but keeps unprefixed string literals as type ‘str’ in both Py2 and Py3, and the builtin ‘str’ type unchanged. This will become the default in the next Cython release and is meant to help user code a) transition more easily to this new default and b) migrate to Python 3 source code semantics without making support for Python 2.x difficult." Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src/python')
-rw-r--r--src/python/seccomp.pyx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/seccomp.pyx b/src/python/seccomp.pyx
index 0455466..2ecefa2 100644
--- a/src/python/seccomp.pyx
+++ b/src/python/seccomp.pyx
@@ -19,6 +19,8 @@
# along with this library; if not, see <http://www.gnu.org/licenses>.
#
+# cython: language_level = 3str
+
""" Python bindings for the libseccomp library
The libseccomp library provides and easy to use, platform independent,