diff options
Diffstat (limited to 'mediagoblin/tools/subtitles.py')
-rw-r--r-- | mediagoblin/tools/subtitles.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mediagoblin/tools/subtitles.py b/mediagoblin/tools/subtitles.py new file mode 100644 index 00000000..7002cdfc --- /dev/null +++ b/mediagoblin/tools/subtitles.py @@ -0,0 +1,10 @@ +import ast + +def get_path(path): + """ + Converting the path of the form + x = u'[ "A","B","C" ," D"]' + to + x = ["A", "B", "C", "D"] + """ + return ast.literal_eval(path)
\ No newline at end of file |