Join package and module with a dot.
(package, module)
| 30 | |
| 31 | |
| 32 | def makename(package, module): |
| 33 | """Join package and module with a dot.""" |
| 34 | # Both package and module can be None/empty. |
| 35 | if package: |
| 36 | name = package |
| 37 | if module: |
| 38 | name += '.' + module |
| 39 | else: |
| 40 | name = module |
| 41 | return name |
| 42 | |
| 43 | |
| 44 | def write_file(name, text, opts): |
no outgoing calls
no test coverage detected