fix imports

This commit is contained in:
Ondrej Samohel 2020-10-13 18:59:32 +02:00
parent 01b3b96983
commit 636ded0fc5
No known key found for this signature in database
GPG key ID: 8A29C663C672C2B7
2 changed files with 9 additions and 9 deletions

View file

@ -12,19 +12,18 @@ Best place for it is in ``repos/pype-config/environments/global.json``
"""
import datetime
import getpass
import logging
import os
import sys
import datetime
import time
import platform
import getpass
import socket
import sys
import time
import traceback
from logging.handlers import TimedRotatingFileHandler
from . import terminal
from . import Terminal
from .mongo import (
MongoEnvNotSet,
decompose_url,
@ -146,7 +145,7 @@ class PypeStreamHandler(logging.StreamHandler):
return
try:
msg = self.format(record)
msg = terminal.log(msg)
msg = Terminal.log(msg)
stream = self.stream
fs = "%s\n"
if not _unicode: # if no unicode support...
@ -376,7 +375,7 @@ class PypeLogger:
for line in lines:
if line.endswith("\n"):
line = line[:-1]
terminal.echo(line)
Terminal.echo(line)
_mongo_logging = False
return logger

View file

@ -1,6 +1,7 @@
import os
import sys
import pype_tray
from . import pype_tray
app = pype_tray.PypeTrayApplication()
if os.name == "nt":