Skip to content

Commit df79c60

Browse files
authored
Merge pull request #272 from GenevieveBuckley/collections-deprecation-warning
Update traits.py for collections deprecation warning
2 parents 462efa8 + 479cda2 commit df79c60

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pythreejs/traits.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from collections import namedtuple, Sequence
4+
from collections import namedtuple
5+
try:
6+
from collections.abc import Sequence # python3
7+
except ImportError:
8+
from collections import Sequence # python2
59
import six
610
import re
711
import warnings

0 commit comments

Comments
 (0)