Internal function.
(seq)
| 85 | |
| 86 | |
| 87 | def _flatten(seq): |
| 88 | """Internal function.""" |
| 89 | res = () |
| 90 | for item in seq: |
| 91 | if isinstance(item, (tuple, list)): |
| 92 | res = res + _flatten(item) |
| 93 | elif item is not None: |
| 94 | res = res + (item,) |
| 95 | return res |
| 96 | |
| 97 | |
| 98 | try: _flatten = _tkinter._flatten |
no outgoing calls
no test coverage detected