diff options
author | mathieui <mathieui@mathieui.net> | 2013-03-04 00:23:58 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-03-04 00:23:58 +0100 |
commit | 1e9e2112f73fc3f2e6552158e57d6a623749eb75 (patch) | |
tree | a1ce204099f06fcf69a9a66710e9e0eb3890763e /src/common.py | |
parent | 4be111b63ebf8ba0be6b12b3e370deaf5a45180f (diff) | |
download | poezio-1e9e2112f73fc3f2e6552158e57d6a623749eb75.tar.gz poezio-1e9e2112f73fc3f2e6552158e57d6a623749eb75.tar.bz2 poezio-1e9e2112f73fc3f2e6552158e57d6a623749eb75.tar.xz poezio-1e9e2112f73fc3f2e6552158e57d6a623749eb75.zip |
Fix #2126 (per-server configuration sections)
(also move replace_key_with_bound() to core.py, to prevent having
common.py depending of config.py)
Diffstat (limited to 'src/common.py')
-rw-r--r-- | src/common.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common.py b/src/common.py index 3b80fa34..e4e3a52d 100644 --- a/src/common.py +++ b/src/common.py @@ -20,8 +20,6 @@ import time import string import shlex -from config import config - ROOM_STATE_NONE = 11 ROOM_STATE_CURRENT = 10 ROOM_STATE_PRIVATE = 15 @@ -188,12 +186,6 @@ def shell_split(st): except ValueError: return st.split(" ") -def replace_key_with_bound(key): - bind = config.get(key, key, 'bindings') - if not bind: - bind = key - return bind - def parse_str_to_secs(duration=''): """ Parse a string of with a number of d, h, m, s |