My goal is to identify methods/ functions that are one lines. For example in scenario.py there are two function that has only one line of code written within them. My works is that i have a large application and I will be parsing all the python files in that application and identify function that has one lines.
#Scenario.py
line 1---> class parent:
line 2---> def father(self):
line 3---> print "dad"
line 4---> def mother(self):
line 5---> print "mom"
Sample Output:
One liner function at : line=2, line =4