Commit 87dc96f5 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'noc-cython-language-level' into 'master'

cython language_level

See merge request !3462
parents 84bebcab 23c9db19
Pipeline #24293 passed with stages
in 59 minutes and 24 seconds
......@@ -4,6 +4,7 @@
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# cython: language_level=3
from libc.stdio cimport snprintf
......@@ -85,7 +86,7 @@ def parse_p_oid(bytes msg):
ptr = msg
o_ptr = out
if ptr[0] == "+":
if ptr[0] == 0x2b:
o_ptr += snprintf(o_ptr, 1024 - (o_ptr - out), "1.3")
else:
o_ptr += snprintf(
......
......@@ -4,6 +4,7 @@
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# cython: language_level=3
from libc.string cimport memcpy, memset
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment