We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67bd4ac commit 8c01848Copy full SHA for 8c01848
bpython/config.py
@@ -1,7 +1,7 @@
1
import os
2
from ConfigParser import ConfigParser, NoSectionError, NoOptionError
3
from itertools import chain
4
-
+from bpython.keys import key_dispatch
5
6
class Struct(object):
7
"""Simple class for instantiating objects we can add arbitrary attributes
@@ -68,6 +68,10 @@ def loadini(struct, configfile):
68
load_theme(struct, path)
69
70
71
+ # checks for valid key configuration this part still sucks
72
+ for key in (struct.pastebin_key, struct.save_key):
73
+ key_dispatch[key]
74
+
75
def load_theme(struct, path):
76
theme = CP()
77
f = open(path, 'r')
0 commit comments