summaryrefslogtreecommitdiff
path: root/pygerrit
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-08-06 13:43:08 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2013-08-06 14:30:35 +0900
commit8c4c435b9d635ceb9d6d7d5f3995fb179d7b3704 (patch)
treecb3ba656d99972323d22ffe7889c762a15db58e5 /pygerrit
parent439e3a73669cbf98ce34a380c35241d26fbf2209 (diff)
downloadpygerrit-8c4c435b9d635ceb9d6d7d5f3995fb179d7b3704.tar.gz
Fix relative imports
Change-Id: I6bc8d92ed1055959f1c24128b8beace814eaf998
Diffstat (limited to 'pygerrit')
-rw-r--r--pygerrit/client.py12
-rw-r--r--pygerrit/events.py4
-rw-r--r--pygerrit/models.py2
-rw-r--r--pygerrit/ssh.py2
-rw-r--r--pygerrit/stream.py5
5 files changed, 12 insertions, 13 deletions
diff --git a/pygerrit/client.py b/pygerrit/client.py
index 6afb94d..11cc1af 100644
--- a/pygerrit/client.py
+++ b/pygerrit/client.py
@@ -27,12 +27,12 @@ THE SOFTWARE.
from json import JSONDecoder
from Queue import Queue, Empty, Full
-from pygerrit import escape_string
-from pygerrit.error import GerritError
-from pygerrit.events import GerritEventFactory
-from pygerrit.models import Change
-from pygerrit.ssh import GerritSSHClient
-from pygerrit.stream import GerritStream
+from . import escape_string
+from .error import GerritError
+from .events import GerritEventFactory
+from .models import Change
+from .ssh import GerritSSHClient
+from .stream import GerritStream
class GerritClient(object):
diff --git a/pygerrit/events.py b/pygerrit/events.py
index e06b937..d477fda 100644
--- a/pygerrit/events.py
+++ b/pygerrit/events.py
@@ -25,8 +25,8 @@ THE SOFTWARE.
"""
-from pygerrit.error import GerritError
-from pygerrit.models import Account, Approval, Change, Patchset, RefUpdate
+from .error import GerritError
+from .models import Account, Approval, Change, Patchset, RefUpdate
class GerritEventFactory(object):
diff --git a/pygerrit/models.py b/pygerrit/models.py
index 4260566..f0b8df2 100644
--- a/pygerrit/models.py
+++ b/pygerrit/models.py
@@ -25,7 +25,7 @@ THE SOFTWARE.
"""
-from pygerrit import from_json
+from . import from_json
class Account(object):
diff --git a/pygerrit/ssh.py b/pygerrit/ssh.py
index 429ca27..d65ae93 100644
--- a/pygerrit/ssh.py
+++ b/pygerrit/ssh.py
@@ -28,7 +28,7 @@ from os.path import abspath, expanduser, isfile
import re
import socket
-from pygerrit.error import GerritError
+from .error import GerritError
from paramiko import SSHClient, SSHConfig
from paramiko.ssh_exception import SSHException
diff --git a/pygerrit/stream.py b/pygerrit/stream.py
index 86ae5b7..dd4ef29 100644
--- a/pygerrit/stream.py
+++ b/pygerrit/stream.py
@@ -31,9 +31,8 @@ import logging
from select import poll, POLLIN
from threading import Thread, Event
-from pygerrit.error import GerritError
-from pygerrit.events import GerritEvent
-from pygerrit.events import GerritEventFactory
+from .error import GerritError
+from .events import GerritEvent, GerritEventFactory
@GerritEventFactory.register("gerrit-stream-error")