summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-02-19 13:46:31 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-02-19 13:46:31 +0000
commit8e08502048203605fe89a30ba2c94647bf4efdf9 (patch)
tree1cf958123043933eb25ba3b3fc11c5d78a3ea2d3
parent936f70fab3e24a5216d049adcc108a9d7424df45 (diff)
remove references to settings from helper
thos should not depend on user settings
-rw-r--r--alot/helper.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 1ee2a722..bc5dc962 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -17,8 +17,6 @@ from twisted.internet.defer import Deferred
import StringIO
import logging
-from settings import config
-from settings import settings
def safely_get(clb, E, on_error=''):
@@ -39,7 +37,7 @@ def safely_get(clb, E, on_error=''):
return on_error
-def string_sanitize(string, tab_width=None):
+def string_sanitize(string, tab_width=8):
r"""
strips, and replaces non-printable characters
@@ -54,8 +52,6 @@ def string_sanitize(string, tab_width=None):
>>> string_sanitize('foo\t\tbar', 8)
'foo bar'
"""
- if tab_width == None:
- tab_width = settings.get('tabwidth')
string = string.strip()
string = string.replace('\r', '')