Commit 405e0b87 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Change to absolute imports.

parent 91567658
......@@ -7,13 +7,13 @@ Tweepy Twitter API library
"""
__version__ = '1.2'
from . models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResult, models
from . error import TweepError
from . api import API
from . cache import Cache, MemoryCache, FileCache, MemCache
from . auth import BasicAuthHandler, OAuthHandler
from . streaming import Stream, StreamListener
from . cursor import Cursor
from tweepy.models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResult, models
from tweepy.error import TweepError
from tweepy.api import API
from tweepy.cache import Cache, MemoryCache, FileCache, MemCache
from tweepy.auth import BasicAuthHandler, OAuthHandler
from tweepy.streaming import Stream, StreamListener
from tweepy.cursor import Cursor
# Global, unauthenticated instance of API
api = API()
......
......@@ -5,9 +5,9 @@
import os
import mimetypes
from . binder import bind_api
from . error import TweepError
from . auth import BasicAuthHandler, OAuthHandler
from tweepy.binder import bind_api
from tweepy.error import TweepError
from tweepy.auth import BasicAuthHandler, OAuthHandler
from tweepy.parsers import *
......
......@@ -5,8 +5,8 @@
from urllib2 import Request, urlopen
import base64
from . import oauth
from . error import TweepError
from tweepy import oauth
from tweepy.error import TweepError
class AuthHandler(object):
......
......@@ -6,8 +6,8 @@ import httplib
import urllib
import time
from . parsers import parse_error
from . error import TweepError
from tweepy.parsers import parse_error
from tweepy.error import TweepError
try:
import json #Python >= 2.6
......
......@@ -17,7 +17,7 @@ except ImportError:
# TODO: use win32file
pass
from . import memcache
from tweepy import memcache
class Cache(object):
......
......@@ -2,7 +2,7 @@
# Copyright 2009 Joshua Roesslein
# See LICENSE
from . error import TweepError
from tweepy.error import TweepError
class Cursor(object):
"""Pagination helper class"""
......
......@@ -2,7 +2,7 @@
# Copyright 2009 Joshua Roesslein
# See LICENSE
from . error import TweepError
from tweepy.error import TweepError
class Model(object):
......
......@@ -6,7 +6,7 @@ import htmlentitydefs
import re
from datetime import datetime
from . models import models
from tweepy.models import models
def _parse_cursor(obj):
......
......@@ -7,10 +7,10 @@ from socket import timeout
from threading import Thread
from time import sleep
from . auth import BasicAuthHandler
from . parsers import parse_status
from . api import API
from . error import TweepError
from tweepy.auth import BasicAuthHandler
from tweepy.parsers import parse_status
from tweepy.api import API
from tweepy.error import TweepError
try:
import json #Python >= 2.6
......
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