Inverse of eliminate_quotes.
(s, d)
| 1199 | |
| 1200 | |
| 1201 | def insert_quotes(s, d): |
| 1202 | """Inverse of eliminate_quotes. |
| 1203 | """ |
| 1204 | for k, v in d.items(): |
| 1205 | kind = k[:k.find('@')] |
| 1206 | if kind: |
| 1207 | kind += '_' |
| 1208 | s = s.replace(k, kind + v) |
| 1209 | return s |
| 1210 | |
| 1211 | |
| 1212 | def replace_parenthesis(s): |