Polber commented on code in PR #28114:
URL: https://github.com/apache/beam/pull/28114#discussion_r1318828545
##########
sdks/python/apache_beam/utils/python_callable.py:
##########
@@ -88,12 +88,12 @@ def load_from_script(source):
for ix, line in reversed(list(enumerate(lines))):
if line[0] != ' ':
if line.startswith('def '):
- name = line[4:line.index('(')].strip()
+ name = method_name or line[4:line.index('(')].strip()
Review Comment:
That is cleaner. Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]