From 479cda256639449a73ec940215c6e78c1b24672d Mon Sep 17 00:00:00 2001 From: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com> Date: Thu, 23 May 2019 15:55:45 +1000 Subject: [PATCH] Update traits.py for collections deprecation warning \site-packages\pythreejs\traits.py:4 C:\Users\genevieb\AppData\Local\conda\conda\envs\ipyvolume-dev\lib\site-packages\pythreejs\traits.py:4: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import namedtuple, Sequence --- pythreejs/traits.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pythreejs/traits.py b/pythreejs/traits.py index 897e3aa1..40e54ba6 100644 --- a/pythreejs/traits.py +++ b/pythreejs/traits.py @@ -1,7 +1,11 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from collections import namedtuple, Sequence +from collections import namedtuple +try: + from collections.abc import Sequence # python3 +except ImportError: + from collections import Sequence # python2 import six import re import warnings