sort imports
This commit is contained in:
parent
587a083895
commit
2054a203c9
|
@ -1,9 +1,11 @@
|
||||||
import configparser
|
import configparser
|
||||||
from os import remove
|
from os import remove
|
||||||
from os.path import exists
|
from os.path import exists
|
||||||
from tsstats import parse_config, exceptions, gen_abspath
|
|
||||||
from nose.tools import raises, with_setup
|
from nose.tools import raises, with_setup
|
||||||
|
|
||||||
|
from tsstats import exceptions, gen_abspath, parse_config
|
||||||
|
|
||||||
configpath = gen_abspath('tests/res/test.cfg')
|
configpath = gen_abspath('tests/res/test.cfg')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
from tsstats import parse_logs, main, exceptions
|
|
||||||
from os import remove
|
from os import remove
|
||||||
|
|
||||||
from nose.tools import raises
|
from nose.tools import raises
|
||||||
|
|
||||||
|
from tsstats import exceptions, main, parse_logs
|
||||||
|
|
||||||
clients = parse_logs('tests/res/test.log')
|
clients = parse_logs('tests/res/test.log')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
from glob import glob
|
||||||
|
|
||||||
import pep8
|
import pep8
|
||||||
from pyflakes.api import checkPath
|
from pyflakes.api import checkPath
|
||||||
from glob import glob
|
|
||||||
|
|
||||||
|
|
||||||
def test_pep8_comformance():
|
def test_pep8_comformance():
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
from bs4 import BeautifulSoup
|
|
||||||
from tsstats import parse_logs, render_template, _format_seconds
|
|
||||||
from os import remove
|
from os import remove
|
||||||
|
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
|
from tsstats import _format_seconds, parse_logs, render_template
|
||||||
|
|
||||||
output_path = 'tests/res/output.html'
|
output_path = 'tests/res/output.html'
|
||||||
clients = parse_logs('tests/res/test.log')
|
clients = parse_logs('tests/res/test.log')
|
||||||
|
|
||||||
|
|
11
tsstats.py
11
tsstats.py
|
@ -1,13 +1,14 @@
|
||||||
import re
|
import argparse
|
||||||
|
import configparser
|
||||||
|
import datetime
|
||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
import re
|
||||||
import datetime
|
|
||||||
from os import sep
|
from os import sep
|
||||||
import configparser
|
|
||||||
from time import strftime, localtime
|
|
||||||
from os.path import exists
|
from os.path import exists
|
||||||
|
from time import localtime, strftime
|
||||||
|
|
||||||
from jinja2 import Environment, FileSystemLoader
|
from jinja2 import Environment, FileSystemLoader
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue