sympy/sympy — pull request #2873 by akshayah3 (2014-02-04 10:17:39+00:00)
Title: Contains method of a line.

The contains method returns true for imaginary points:
>>> b= Line(Point(0,0),Point(1,1))
>>> b.contains(Point(I,I))
Out[5]: True
So I added some changes which returns False for imaginary numbers.