| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | import os | |
| 2 | 2 | from ConfigParser import ConfigParser, NoSectionError, NoOptionError | |
| 3 | 3 | from itertools import chain | |
| 4 | - | ||
| 4 | + from bpython.keys import key_dispatch | ||
| 5 | 5 | ||
| 6 | 6 | class Struct(object): | |
| 7 | 7 | """Simple class for instantiating objects we can add arbitrary attributes | |
@@ -68,6 +68,10 @@ def loadini(struct, configfile): | |||
| 68 | 68 | load_theme(struct, path) | |
| 69 | 69 | ||
| 70 | 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 | + | ||
| 71 | 75 | def load_theme(struct, path): | |
| 72 | 76 | theme = CP() | |
| 73 | 77 | f = open(path, 'r') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments