Пример #1
0
def smash_bash_complete(*args, **kargs):
    completion_log.info("calling pybcompgen: {0}".format([args, kargs]))
    result = complete(*args, **kargs)
    completion_log.info("result: {0}".format(result))
    result = [x for x in result if x not in keyword.kwlist]
    return result
Пример #2
0
 def test_pybcompgen(self):
     results = complete('whi')
     self.assertTrue('which' in results)