clean up style and extra imports

This commit is contained in:
Alex Riina
2015-03-08 00:04:41 -05:00
committed by Alex Riina
parent 4df7aa284b
commit b36287e573
4 changed files with 7 additions and 24 deletions

View File

@@ -1,14 +1,10 @@
# -*- coding: utf-8 -*-
import os
import logging
import regex as re
from PyML import SparseDataSet
from talon.constants import RE_DELIMITER
from talon.signature.constants import (SIGNATURE_MAX_LINES,
TOO_LONG_SIGNATURE_LINE)
from talon.signature.learning.featurespace import features, build_pattern
from talon.utils import get_delimiter
from talon.signature.bruteforce import get_signature_candidate
@@ -61,7 +57,7 @@ def extract(body, sender):
text = delimiter.join(text)
if text.strip():
return (text, delimiter.join(signature))
except Exception, e:
except Exception:
log.exception('ERROR when extracting signature with classifiers')
return (body, None)