Permalink
Browse files

remove unused imports

  • Loading branch information...
1 parent 99cc98e commit a329793f3a97ef399ef767ed176356ded9a36f59 @posativ committed Mar 23, 2013
@@ -7,7 +7,6 @@
import os
import time
import locale
-import codecs
from urlparse import urlsplit
from datetime import datetime
@@ -8,7 +8,6 @@
import traceback
from os.path import join, dirname, basename
-from functools import partial
from acrylamid import log, helpers
from acrylamid.errors import AcrylamidException
View
@@ -15,9 +15,8 @@
from functools import partial
from acrylamid import log
-from acrylamid.utils import hash
from acrylamid.errors import AcrylamidException
-from acrylamid.helpers import event, memoize, system
+from acrylamid.helpers import event, system
from acrylamid.lib.async import Threadpool
pool = None
View
@@ -90,7 +90,6 @@ def init(name, level, colors=True):
fatal = logger.fatal
critical = logger.critical
warn = logger.warn
- warning = logger.warning
info = logger.info
skip = logger.skip
debug = logger.debug
@@ -11,7 +11,6 @@
import sys
import abc
import codecs
-import locale
import traceback
BOM_UTF8 = codecs.BOM_UTF8.decode('utf8')
@@ -9,7 +9,6 @@
from acrylamid.errors import AcrylamidException
from acrylamid.readers import Entry
-from acrylamid.helpers import safe
from acrylamid.defaults import conf
log.init('acrylamid', level=40)
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from acrylamid.utils import Metadata, groupby, neighborhood
+from acrylamid.utils import Metadata, neighborhood
import attest
tt = attest.Tests()
@@ -5,12 +5,9 @@
#
# acrylamid.tasks can add additional tasks to argument parser and execution
-import sys
-import glob
-import traceback
import argparse
-from os.path import dirname, basename, join
+from os.path import dirname
from acrylamid.helpers import discover
# we get them from acrylamid/__init__.py
@@ -13,7 +13,7 @@
from os.path import join, dirname, isfile
from datetime import datetime
-from acrylamid import PY3, log, readers, commands, utils
+from acrylamid import log, readers, commands
from acrylamid.errors import AcrylamidException
from acrylamid.tasks import task, argument
View
@@ -11,7 +11,6 @@
import sys
import os
import io
-import re
import locale
import functools
import itertools
@@ -3,7 +3,6 @@
# Copyright 2013 Martin Zimmermann <info@posativ.org>. All rights reserved.
# License: BSD Style, 2 clauses -- see LICENSE.
-from calendar import month_abbr, month_name, day_abbr, day_name
from os.path import isfile
from acrylamid.utils import neighborhood, groupby
@@ -5,6 +5,7 @@
from os.path import isfile
from datetime import datetime, timedelta
+from wsgiref.handlers import format_date_time
from acrylamid.utils import HashableList, total_seconds
from acrylamid.views import View, tag
@@ -105,9 +106,6 @@ class RSS(Feed):
def init(self, conf, env, num_entries=25):
super(RSS, self).init(conf, env)
- from wsgiref.handlers import format_date_time
- from time import mktime
-
self.num_entries = num_entries
env.engine.register(
'rfc822', lambda dt: unicode(format_date_time(total_seconds(dt - epoch))))
@@ -128,9 +126,6 @@ class RssPerTag(FeedPerTag):
def init(self, conf, env, num_entries=25):
super(RssPerTag, self).init(conf, env)
- from wsgiref.handlers import format_date_time
- from time import mktime
-
self.num_entries = num_entries
env.engine.register(
'rfc822', lambda dt: unicode(format_date_time(total_seconds(dt - epoch))))
@@ -4,12 +4,9 @@
# License: BSD Style, 2 clauses -- see LICENSE.
import io
-import re
from time import strftime, gmtime
-from itertools import ifilter
-from os.path import join, getmtime, exists
-from collections import defaultdict
+from os.path import getmtime, exists
from acrylamid.views import View
from acrylamid.helpers import event, joinurl, rchop

0 comments on commit a329793

Please sign in to comment.