Skip to content

Commit 40be69d

Browse files
author
Bob Corsaro
committed
Fixes for python3
1 parent 3adcaff commit 40be69d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

embedly/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from __future__ import unicode_literals
22

3-
from UserDict import IterableUserDict
3+
try:
4+
from UserDict import IterableUserDict
5+
except ImportError:
6+
from collections import UserDict as IterableUserDict
47

58
class Url(IterableUserDict, object):
69
"""

0 commit comments

Comments
 (0)