Commit e60f5a8d authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Use package relative imports.

parent 913da481
......@@ -7,12 +7,12 @@ Tweepy Twitter API library
"""
__version__ = '1.0'
from models import *
from error import TweepError
from api import API
from cache import *
from auth import BasicAuthHandler, OAuthHandler
from streaming import Stream
from . models import *
from . error import TweepError
from . api import API
from . cache import *
from . auth import BasicAuthHandler, OAuthHandler
from . streaming import Stream
# Global, unauthenticated instance of API
api = API()
......@@ -2,9 +2,9 @@
# Copyright 2009 Joshua Roesslein
# See LICENSE
from binder import bind_api
from parsers import *
from error import TweepError
from . binder import bind_api
from . parsers import *
from . error import TweepError
"""Twitter API"""
class API(object):
......
......@@ -6,8 +6,8 @@ from urllib2 import Request, urlopen
from urllib import quote
import base64
import oauth
from error import TweepError
from . import oauth
from . error import TweepError
class AuthHandler(object):
......
......@@ -5,8 +5,8 @@
import httplib
import urllib
from parsers import parse_error
from error import TweepError
from . parsers import parse_error
from . error import TweepError
def bind_api(path, parser, allowed_param=None, method='GET', require_auth=False,
timeout=None, host=None):
......
......@@ -2,7 +2,7 @@
# Copyright 2009 Joshua Roesslein
# See LICENSE
from __future__ import with_statement
from __future__ import with_statement # need this for py2.5
import time
import threading
......@@ -11,7 +11,7 @@ import hashlib
import fcntl
import cPickle as pickle
from error import TweepError
from . error import TweepError
"""Cache interface"""
class Cache(object):
......
......@@ -2,7 +2,7 @@
# Copyright 2009 Joshua Roesslein
# See LICENSE
from error import TweepError
from . error import TweepError
class Model(object):
......
......@@ -4,7 +4,7 @@
from datetime import datetime
from models import models
from . models import models
try:
import json
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment