From 478f69d92ce3eabd55d82735ac4810df822c3773 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Wed, 4 Jan 2023 17:22:23 -0800 Subject: [PATCH] prevent ImportWarning on pypy * disable py2 relative import behavior --- yaml/_yaml.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yaml/_yaml.pyx b/yaml/_yaml.pyx index e3e93e2c..0541ea48 100644 --- a/yaml/_yaml.pyx +++ b/yaml/_yaml.pyx @@ -1,3 +1,6 @@ +# disable Cython py2 relative import behavior to avoid ImportWarning on pypy until there's a better way to handle it +# see https://github.com/cython/cython/issues/1720 +from __future__ import absolute_import import yaml