(s)
| 278 | |
| 279 | |
| 280 | def create_module_string(s): |
| 281 | |
| 282 | # single module -> return a module name string |
| 283 | if s.find(',') < 0: |
| 284 | return "'" + s + "'" |
| 285 | |
| 286 | # multiple module -> return a tuple of module name string |
| 287 | mstr = '(' |
| 288 | for module in s.split(','): |
| 289 | mstr += "'" + module.strip() + "', " |
| 290 | mstr += ')' |
| 291 | return mstr |
| 292 | |
| 293 | |
| 294 | def replace_module_assignment(s): |