Skip to content

Fix syntax error in map.py. #762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2012
Merged

Fix syntax error in map.py. #762

merged 1 commit into from
Feb 8, 2012

Conversation

lbeltrame
Copy link
Contributor

This commit fixes a SyntaxError observed when installing (as in: running python setup.py install) on Linux (python 2.7): the original error I saw was

Extracting pandas-0.7.0.dev_6253b07-py2.7-linux-x86_64.egg to /usr/lib64/python2.7/site-packages
SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/pandas-0.7.0.dev_6253b07-py2.7-linux-x86_64.egg/pandas/util/map.py', 65, 42, '    def wrapped(arr, *otherargs, n_results=None):\n'))

and a check showed that *args was put before a keyword expression in the function. Reversing the order fixed the error.

@adamklein adamklein merged commit 94f7a81 into pandas-dev:master Feb 8, 2012
dan-nadler pushed a commit to dan-nadler/pandas that referenced this pull request Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants