(self, path)
return tail.lower() in (".py", ".pyw")
Test whether argument path is a Python script.
Test whether argument path is a Python script.
Test whether argument path is a Python script .
def is_python(self, path):
        """Test whether argument path is a Python script."""
        head, tail = os.path.splitext(path)
        return tail.lower() in (".py", ".pyw")
def is_python ( self , path ) : head , tail = os . path . splitext ( path ) return tail . lower ( ) in ( ".py" , ".pyw" )