Skip to content
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

Syntax errors on Python 2.6 #85

Closed
pylint-bot opened this issue Apr 7, 2015 · 1 comment
Closed

Syntax errors on Python 2.6 #85

pylint-bot opened this issue Apr 7, 2015 · 1 comment
Labels

Comments

@pylint-bot
Copy link

Originally reported by: Mikko Vatanen (BitBucket: mikkov, GitHub: @mikkov?)


Installing on Centos6.6 / Python 2.6 with pip prints the following error messages:

[root@dev~]# pip install --upgrade pylint

... cut ...

Running setup.py install for astroid
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/astroid/tests/unittest_inference.py', 524, 44, ' self.assertSetEqual({n.class for n in xxx.infered()},\n'))

SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/astroid/tests/unittest_scoped_nodes.py', 620, 39, "        expected_methods = {'__init__', 'class_method', 'method', 'static_method'}\n"))

SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/astroid/tests/unittest_modutils.py', 248, 41, "            {os.path.join(package, x) for x in ['__init__.py', 'module.py', 'module2.py', 'noendingnewline.py', 'nonregr.py']})\n"))

SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/astroid/tests/unittest_brain.py', 73, 33, '        self.assertSetEqual({"a", "b", "c"}, set(base.instance_attrs))\n'))

SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/astroid/modutils.py', 69, 61, '        get_python_lib(standard_lib=True, prefix=sys.prefix),\n'))

@pylint-bot
Copy link
Author

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):


We don't support Python 2.6 anymore, since Pylint 1.4 and astroid 1.3.

PCManticore added a commit that referenced this issue Dec 11, 2015
AWhetter added a commit that referenced this issue Jan 31, 2021
These nodes used to be parented to their original ast.FunctionDef parent
but are now correctly parented to their astroid.FunctionDef parent.

Closes #85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant