From 405e0b874688d2678c0965cab3840e0cdf9f6398 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Thu, 15 Oct 2009 16:21:34 -0500 Subject: [PATCH] Change to absolute imports. --- tweepy/__init__.py | 14 +++++++------- tweepy/api.py | 6 +++--- tweepy/auth.py | 4 ++-- tweepy/binder.py | 4 ++-- tweepy/cache.py | 2 +- tweepy/cursor.py | 2 +- tweepy/models.py | 2 +- tweepy/parsers.py | 2 +- tweepy/streaming.py | 8 ++++---- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/tweepy/__init__.py b/tweepy/__init__.py index 9e5fd28..75e0883 100644 --- a/tweepy/__init__.py +++ b/tweepy/__init__.py @@ -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() diff --git a/tweepy/api.py b/tweepy/api.py index ef42553..24e237c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 * diff --git a/tweepy/auth.py b/tweepy/auth.py index 7f5d8a7..c4488fe 100644 --- a/tweepy/auth.py +++ b/tweepy/auth.py @@ -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): diff --git a/tweepy/binder.py b/tweepy/binder.py index 0175bd4..ed85718 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -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 diff --git a/tweepy/cache.py b/tweepy/cache.py index 205d760..622b2a9 100644 --- a/tweepy/cache.py +++ b/tweepy/cache.py @@ -17,7 +17,7 @@ except ImportError: # TODO: use win32file pass -from . import memcache +from tweepy import memcache class Cache(object): diff --git a/tweepy/cursor.py b/tweepy/cursor.py index 1def5fd..3f316ab 100644 --- a/tweepy/cursor.py +++ b/tweepy/cursor.py @@ -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""" diff --git a/tweepy/models.py b/tweepy/models.py index 38a7fa4..b83dcce 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -2,7 +2,7 @@ # Copyright 2009 Joshua Roesslein # See LICENSE -from . error import TweepError +from tweepy.error import TweepError class Model(object): diff --git a/tweepy/parsers.py b/tweepy/parsers.py index 739d303..9ae097e 100644 --- a/tweepy/parsers.py +++ b/tweepy/parsers.py @@ -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): diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 8b743aa..35a8538 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -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 -- 2.25.1