Skip to content

Commit 1df4227

Browse files
committed
Absolute imports
1 parent faf25c1 commit 1df4227

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

embedly/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
from client import Embedly
1+
from __future__ import absolute_import
2+
from .client import Embedly
23

34
__version__ = '0.4.3'

embedly/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
The embedly object that interacts with the service
66
"""
7+
from __future__ import absolute_import
78
import re
89
import httplib2
910
import json
@@ -14,7 +15,7 @@
1415
from urllib.parse import quote, urlencode
1516

1617

17-
from models import Url
18+
from .models import Url
1819

1920
USER_AGENT = 'Mozilla/5.0 (compatible; embedly-python/0.3;)'
2021

0 commit comments

Comments
 (0)