sort imports

This commit is contained in:
Thor77 2015-09-04 23:20:35 +02:00
parent 587a083895
commit 2054a203c9
5 changed files with 26 additions and 18 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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():

View File

@ -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')

View File

@ -1,16 +1,17 @@
import re import argparse
import glob import configparser
import json import datetime
import logging import glob
import argparse import json
import datetime import logging
from os import sep import re
import configparser from os import sep
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
class Exceptions: class Exceptions:
class ConfigNotFound(Exception): class ConfigNotFound(Exception):
pass pass