summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-01 13:42:49 +0200
committeremkael <emkael@tlen.pl>2017-08-01 13:42:49 +0200
commit126729817b8626a597b61bcc59f8a6441e480691 (patch)
tree8a3a96b49e5c0822b70b24951fb12f12d56de3c3
parentdcedfd436f73e73ed425ce7f6ac4ceacfc26cbb6 (diff)
Import sort in all files
-rw-r--r--jfr_playoff/data.py7
-rw-r--r--jfr_playoff/db.py1
-rw-r--r--jfr_playoff/filemanager.py2
-rw-r--r--jfr_playoff/generator.py2
-rw-r--r--jfr_playoff/settings.py1
-rw-r--r--playoff.py6
6 files changed, 15 insertions, 4 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py
index 997b038..b54d1ae 100644
--- a/jfr_playoff/data.py
+++ b/jfr_playoff/data.py
@@ -1,8 +1,11 @@
from urlparse import urljoin
+
import mysql
-from jfr_playoff.db import PlayoffDB
-from jfr_playoff.dto import Team, Match, Phase
+
import jfr_playoff.sql as p_sql
+from jfr_playoff.db import PlayoffDB
+from jfr_playoff.dto import Match, Phase, Team
+
class PlayoffData(object):
def __init__(self, settings):
diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py
index 8457dd4..19ec2fb 100644
--- a/jfr_playoff/db.py
+++ b/jfr_playoff/db.py
@@ -1,5 +1,6 @@
import mysql.connector
+
class PlayoffDB(object):
db_cursor = None
diff --git a/jfr_playoff/filemanager.py b/jfr_playoff/filemanager.py
index 06374dd..2c443b4 100644
--- a/jfr_playoff/filemanager.py
+++ b/jfr_playoff/filemanager.py
@@ -1,8 +1,10 @@
import os
import shutil
import socket
+
import __main__
+
class PlayoffFileManager(object):
def __init__(self, settings):
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py
index 7b9760e..e3e8221 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -1,7 +1,9 @@
from datetime import datetime
+
import jfr_playoff.template as p_temp
from jfr_playoff.data import PlayoffData
+
class PlayoffGenerator(object):
def __init__(self, settings):
self.settings = settings
diff --git a/jfr_playoff/settings.py b/jfr_playoff/settings.py
index 3ed1774..3b765bc 100644
--- a/jfr_playoff/settings.py
+++ b/jfr_playoff/settings.py
@@ -3,6 +3,7 @@ import json
import readline
import sys
+
def complete_filename(text, state):
return (glob.glob(text+'*')+[None])[state]
diff --git a/playoff.py b/playoff.py
index 48da011..c335b55 100644
--- a/playoff.py
+++ b/playoff.py
@@ -1,7 +1,9 @@
import traceback
-from jfr_playoff.settings import PlayoffSettings
-from jfr_playoff.generator import PlayoffGenerator
+
from jfr_playoff.filemanager import PlayoffFileManager
+from jfr_playoff.generator import PlayoffGenerator
+from jfr_playoff.settings import PlayoffSettings
+
def main():