Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
Update import logic to better work with python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Jan 26, 2020
1 parent 7b01f2f commit e5e0b1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mailgun2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

__title__ = 'mailgun2'
__version__ = '1.1.0'
__author__ = 'Albert Wang'
Expand Down
5 changes: 3 additions & 2 deletions tests/mailgun.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from __future__ import absolute_import
import os
import unittest

from mock import patch

import mailgun2
from mailgun2 import Mailgun


class MailgunTestBase(unittest.TestCase):
Expand All @@ -12,7 +13,7 @@ def setUp(self):
self.public_key = 'test_public_key'
self.private_key = 'test_private_key'
self.domain = 'test.domain'
self.mailgun = mailgun2.Mailgun(
self.mailgun = Mailgun(
self.domain,
self.public_key,
self.private_key,
Expand Down

0 comments on commit e5e0b1c

Please sign in to comment.