Fix relative imports so they work in both py3 and py27

This commit is contained in:
Mark Haines 2016-03-08 11:45:50 +00:00
parent ea72bd9600
commit 7076082ae6
17 changed files with 22 additions and 22 deletions

View file

@ -45,7 +45,7 @@ from .search import SearchStore
from .tags import TagsStore
from .account_data import AccountDataStore
from util.id_generators import IdGenerator, StreamIdGenerator, ChainedIdGenerator
from .util.id_generators import IdGenerator, StreamIdGenerator, ChainedIdGenerator
from synapse.api.constants import PresenceState
from synapse.util.caches.stream_change_cache import StreamChangeCache

View file

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from _base import SQLBaseStore
from ._base import SQLBaseStore
class EndToEndKeyStore(SQLBaseStore):

View file

@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from _base import SQLBaseStore, _RollbackButIsFineException
from ._base import SQLBaseStore, _RollbackButIsFineException
from twisted.internet import defer, reactor

View file

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from _base import SQLBaseStore
from ._base import SQLBaseStore
from synapse.util.caches.descriptors import cachedInlineCallbacks
from twisted.internet import defer

View file

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from _base import SQLBaseStore
from ._base import SQLBaseStore
class MediaRepositoryStore(SQLBaseStore):

View file

@ -15,7 +15,7 @@
from twisted.internet import defer
from _base import SQLBaseStore
from ._base import SQLBaseStore
from unpaddedbase64 import encode_base64
from synapse.crypto.event_signing import compute_event_reference_hash