If arg is list-like, then joins it with sep. :param sep: Separator string. :type sep: string :param arg: Value to coerce into a list. :type arg: string or list of strings :rtype: string
(sep, arg)
| 130 | |
| 131 | |
| 132 | def join_list(sep, arg): |
| 133 | """If arg is list-like, then joins it with sep. |
| 134 | |
| 135 | :param sep: Separator string. |
| 136 | :type sep: string |
| 137 | |
| 138 | :param arg: Value to coerce into a list. |
| 139 | :type arg: string or list of strings |
| 140 | |
| 141 | :rtype: string |
| 142 | """ |
| 143 | return sep.join(as_list(arg)) |
| 144 | |
| 145 | |
| 146 | def as_list(arg): |