Absolute import some circular dependencies to appease Python 3.4.

This commit is contained in:
Rapptz committed 2017-01-03 09:52:02 -05:00
1 parent a1c81419b7
commit 79a49f9145
14 files changed
+108 -88

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
from . import utils
import discord.utils
class Object:
"""Represents a generic Discord object.
@@ -51,4 +51,4 @@ class Object:
@property
def created_at(self):
"""Returns the snowflake's creation time in UTC."""
return utils.snowflake_time(self.id)
return discord.utils.snowflake_time(self.id)