Check-in [0cb24d59af]
Overview
Comment: | Use r"" string for literal ANSI escapes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0cb24d59af148f9fb3648c886bf74ae3 |
User & Date: | mario on 2014-08-12 16:41:50 |
Other Links: | manifest | tags |
Context
2014-08-12
| ||
16:42 | Make API requests more resilient check-in: 5e18bfece0 user: mario tags: trunk | |
16:41 | Use r"" string for literal ANSI escapes check-in: 0cb24d59af user: mario tags: trunk | |
2014-08-05
| ||
02:42 | Optional homepage querying, stripping musicgoal stream_urls. check-in: 2b60750fdf user: mario tags: trunk | |
Changes
Modified config.py from [a443e08afc] to [59ff23a453].
︙ | ︙ | |||
210 211 212 213 214 215 216 | def __print__(*args): if conf.debug: print(" ".join([str(a) for a in args])) # error colorization dbg = type('obj', (object,), { | | | | | | | | | | | 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | def __print__(*args): if conf.debug: print(" ".join([str(a) for a in args])) # error colorization dbg = type('obj', (object,), { "ERR": r"[31m[ERR][0m", # red ERROR "INIT": r"[31m[INIT][0m", # red INIT ERROR "PROC": r"[32m[PROC][0m", # green PROCESS "CONF": r"[33m[CONF][0m", # brown CONFIG DATA "UI": r"[34m[UI][0m", # blue USER INTERFACE BEHAVIOUR "HTTP": r"[35m[HTTP][0m", # magenta HTTP REQUEST "DATA": r"[36m[DATA][0m", # cyan DATA "INFO": r"[37m[INFO][0m", # gray INFO "STAT": r"[37m[STATE][0m", # gray CONFIG STATE }) #-- actually fill global conf instance conf = ConfigDict() if conf: __print__(dbg.PROC, "ConfigDict() initialized") |
Modified st2.py from [3d89c6ea6f] to [80f1b4d75a].
︙ | ︙ | |||
1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 | config_dialog.open(None) del conf.firstrun # run gui_startup(100/100.0) gtk.main() # invoke command-line interface else: import cli cli.StreamTunerCLI() | > | 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 | config_dialog.open(None) del conf.firstrun # run gui_startup(100/100.0) gtk.main() __print__(dbg.PROC, r"[31m gtk_main_quit [0m") # invoke command-line interface else: import cli cli.StreamTunerCLI() |
︙ | ︙ |