Check if the readline is available. By default it is not in Python default installation on Windows
()
| 41 | readline._readline = None |
| 42 | |
| 43 | def readlineAvailable(): |
| 44 | """ |
| 45 | Check if the readline is available. By default |
| 46 | it is not in Python default installation on Windows |
| 47 | """ |
| 48 | |
| 49 | return readline._readline is not None |
| 50 | |
| 51 | def clearHistory(): |
| 52 | if not readlineAvailable(): |
no outgoing calls
no test coverage detected
searching dependent graphs…