Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Check-in [89f9b52549]

Overview
Comment:Custom .quote() cmd argument escaping for windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 89f9b5254915db500c9473e04b77370357d7de20
User & Date: mario on 2016-11-10 17:35:33
Other Links: manifest | tags
Context
2016-11-11
22:23
exportcat: Strip non-filename characters (slash) from genre prefix. check-in: 921d100bbc user: mario tags: trunk
2016-11-10
17:35
Custom .quote() cmd argument escaping for windows. check-in: 89f9b52549 user: mario tags: trunk
2016-11-09
20:08
Fixed file open "rt" mode. check-in: 93908484c3 user: mario tags: trunk
Changes

Modified action.py from [a6fade5fcd] to [3ad993befe].

182
183
184
185
186
187
188
189
190






191
192
193
194
195
196
197
182
183
184
185
186
187
188


189
190
191
192
193
194
195
196
197
198
199
200
201







-
-
+
+
+
+
+
+







# OS shell command escaping
#
def quote(ins):
    if type(ins) is list:
        return " ".join([quote(s) for s in ins])
    # Windows: double quotes
    elif conf.windows:
        return subprocess.list2cmdline([ins])
        return '"%s"' % ins
        if re.search(r"""[()<>&%!^'";\s]""", ins):
            ins = re.sub(r"([()<>&%^])", "^$1", ins)
            ins = ins.replace('"', '\\^"')
            return '"%s"' % ins
        else:
            return subprocess.list2cmdline([ins])
    # Posix-style shell quoting
    else:
        return pipes.quote(ins)
        return "%r" % ins


# Convert e.g. "text/x-scpls" MIME types to just "pls" monikers