mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
10 lines
276 B
Python
10 lines
276 B
Python
__author__ = 'ktisha'
|
|
|
|
def g(f):
|
|
if f.__doc__: # Should be OK
|
|
lines = f.__doc__.splitlines() # Should be OK
|
|
for line in lines:
|
|
line = line.strip()
|
|
if line:
|
|
return line.rstrip('.')
|
|
return f.__name__ # Should be OK |