Convert a list of scopes to a space separated string.
(scope)
| 6 | |
| 7 | |
| 8 | def list_to_scope(scope): |
| 9 | """Convert a list of scopes to a space separated string.""" |
| 10 | if isinstance(scope, (set, tuple, list)): |
| 11 | return " ".join([to_unicode(s) for s in scope]) |
| 12 | if scope is None: |
| 13 | return scope |
| 14 | return to_unicode(scope) |
| 15 | |
| 16 | |
| 17 | def scope_to_list(scope): |
no test coverage detected
searching dependent graphs…