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