Source

aurum / autoload / aurum / drivers / common / utils.vim

Diff from to

autoload/aurum/drivers/common/utils.vim

     endfunction
 endif
 "▶1 utils.pystring
-" Only works with numbers and strings
 function s:utils.pystring(v)
-    return type(a:v)==type(0) ? string(a:v)
-                \             : '"'.substitute(escape(a:v, '\"'),
-                \                              "\n", '\\n', '').'"'
+    return type(a:v)==type(0)  ?
+                \string(a:v) :
+                \substitute(string(a:v), "''", '\\''', 'g')
 endfunction
 "▶1 utils.emptystatdct
 let s:utils.emptystatdct={