Browse Source

Remove a few unused imports and variables

Let's hope pyflakes didn't fuck up. I wish I had finished those unit
tests already.
tags/1.1
dequis 7 years ago
parent
commit
a198997cbb
9 changed files with 6 additions and 21 deletions
  1. +1
    -2
      app.py
  2. +0
    -2
      board.py
  3. +2
    -3
      interboard.py
  4. +0
    -1
      misc.py
  5. +1
    -3
      staff.py
  6. +1
    -3
      staff_interface.py
  7. +0
    -1
      str_format.py
  8. +0
    -2
      template.py
  9. +1
    -4
      wakarimasen.py

+ 1
- 2
app.py View File

@@ -1,12 +1,11 @@
import model
import staff_interface
import urllib

from template import Template
from util import WakaError
from staff_interface import StaffInterface
from staff_tasks import StaffAction
from board import Board, NoBoard
from board import Board
from misc import get_cookie_from_request, kwargs_from_params, make_cookies

def no_task(environ, start_response):


+ 0
- 2
board.py View File

@@ -2,11 +2,9 @@ import os
import re
import time
import sys
import random
import hashlib
import mimetypes
from subprocess import Popen, PIPE
from urllib import urlencode

import misc
import str_format


+ 2
- 3
interboard.py View File

@@ -8,8 +8,7 @@ import sys
import traceback
from datetime import datetime
from calendar import timegm
from urllib import urlencode
from subprocess import Popen, PIPE
from subprocess import Popen

import config
import strings
@@ -22,7 +21,7 @@ import misc
from template import Template
from util import WakaError, local

from sqlalchemy.sql import case, or_, and_, select, func, null
from sqlalchemy.sql import or_, and_, select

# Common Site Table!



+ 0
- 1
misc.py View File

@@ -1,5 +1,4 @@
# misc.py: Temporary place for new functions
import sys
import os
import re
import time


+ 1
- 3
staff.py View File

@@ -1,15 +1,13 @@
'''Staff management.'''

import time
from sqlalchemy.sql import case, or_, and_, select, func, null
from sqlalchemy.sql import select, func

import strings
import model
import misc
import staff_interface
import config, config_defaults
from util import WakaError, local
from template import Template

# TODO: Synchronized cache of staff personnel objects.
# _staff = {}


+ 1
- 3
staff_interface.py View File

@@ -4,8 +4,7 @@ import time
import os
import re
from datetime import datetime
from sqlalchemy.sql import case, or_, and_, not_, exists, select, func, null
from urllib import urlencode
from sqlalchemy.sql import or_, and_, not_, exists, select, func

import staff_tasks
import interboard
@@ -414,7 +413,6 @@ class StaffInterface(Template):
sortby_type = sortby
sortby_dir = order

session = model.Session()
table = model.report
sql = table.select()



+ 0
- 1
str_format.py View File

@@ -1,6 +1,5 @@
import re

import config, config_defaults
from urllib import quote
from util import local



+ 0
- 2
template.py View File

@@ -1,9 +1,7 @@
import os
import sys
import glob
import random
import re
from str_format import percent_encode

import jinja2



+ 1
- 4
wakarimasen.py View File

@@ -1,8 +1,7 @@
#!/usr/bin/python
#!/usr/bin/python2

import os
import sys
import re

import fcgi
import werkzeug
@@ -11,7 +10,6 @@ import config, config_defaults
import app
import util
import model
import board
import interboard
from board import Board, NoBoard
from util import WakaError, local
@@ -106,7 +104,6 @@ def reset_password(username):
cleanup()

def development_server():
from werkzeug.serving import WSGIRequestHandler
app_path = os.path.basename(__file__)

werkzeug.run_simple('', 8000,


Loading…
Cancel
Save