Turns sequence into string, prefixing/quoting each item.
( items, prefix='', quote='')
| 3019 | |
| 3020 | |
| 3021 | def _flags( items, prefix='', quote=''): |
| 3022 | ''' |
| 3023 | Turns sequence into string, prefixing/quoting each item. |
| 3024 | ''' |
| 3025 | if not items: |
| 3026 | return '' |
| 3027 | if isinstance( items, str): |
| 3028 | items = items, |
| 3029 | ret = '' |
| 3030 | for item in items: |
| 3031 | if ret: |
| 3032 | ret += ' ' |
| 3033 | ret += f'{prefix}{quote}{item}{quote}' |
| 3034 | return ret.strip() |
| 3035 | |
| 3036 | |
| 3037 | def _fs_mtime( filename, default=0): |
no outgoing calls
no test coverage detected
searching dependent graphs…