[Getan-commits] [PATCH 10 of 32] Update codingstyle for pep8
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 11 14:33:54 CEST 2013
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1381482072 -7200
# Node ID fcbdecb0f9e006c9e0fca2b281de64b7d71ae015
# Parent c7f9997a54925c94940dddee9bd7bbc8f474ec71
Update codingstyle for pep8
diff -r c7f9997a5492 -r fcbdecb0f9e0 getan/config.py
--- a/getan/config.py Fri Oct 11 10:34:07 2013 +0200
+++ b/getan/config.py Fri Oct 11 11:01:12 2013 +0200
@@ -15,6 +15,7 @@
logger = None
+
def initialize(level=logging.INFO, filename="getan.log"):
setup_logging(level, filename)
setup_locale()
@@ -90,24 +91,23 @@
KEY_PROJECT_EDIT = "project_edit"
DEFAULT_KEYBINDINGS = {
- KEY_SWITCH_TIME_MODE : "f1",
- KEY_SWITCH_PROJECT_ORDER : "f2",
- KEY_SWITCH_LISTS : "tab",
- KEY_ENTER : "enter",
- KEY_INSERT : "insert",
- KEY_DELETE : "delete",
- KEY_ESCAPE : "esc",
- KEY_ENTRY_UP : "up",
- KEY_ENTRY_DOWN : "down",
- KEY_ENTRY_DELETE : "d",
- KEY_ENTRY_MOVE : "m",
- KEY_ENTRY_EDIT : "e",
- KEY_ADD_TIME : "+",
- KEY_SUBTRACT_TIME : "-",
- KEY_PROJECT_PAUSE : " ",
- KEY_PROJECT_EDIT : "backspace",
- }
-
+ KEY_SWITCH_TIME_MODE: "f1",
+ KEY_SWITCH_PROJECT_ORDER: "f2",
+ KEY_SWITCH_LISTS: "tab",
+ KEY_ENTER: "enter",
+ KEY_INSERT: "insert",
+ KEY_DELETE: "delete",
+ KEY_ESCAPE: "esc",
+ KEY_ENTRY_UP: "up",
+ KEY_ENTRY_DOWN: "down",
+ KEY_ENTRY_DELETE: "d",
+ KEY_ENTRY_MOVE: "m",
+ KEY_ENTRY_EDIT: "e",
+ KEY_ADD_TIME: "+",
+ KEY_SUBTRACT_TIME: "-",
+ KEY_PROJECT_PAUSE: " ",
+ KEY_PROJECT_EDIT: "backspace",
+ }
def __init__(self, config):
logger.debug("Keybindings are: %r" % config.items(self.KEYBINDINGS))
More information about the Getan-commits
mailing list