Issue deprecation warning when trying to run Beautiful Soup 3 code under Python 3
Bug #1643256 reported by
Boštjan
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In BeautifulSoup's code, there are some missing parentheses.
setup.py, line 22:
print "Unit tests have failed!"
Please fix line 22 in setup.py to
print("Unit tests have failed!")
The bug was discovered when I wanted to upgrade beautifulsoup by using this command in the Command Prompt:
pip install beautifulsoup --upgrade
summary: |
- SyntaxError: Missing parentheses in call to 'print' + Issue deprecation warning when trying to run Beautiful Soup 3 code under + Python 3 |
Changed in beautifulsoup: | |
status: | Invalid → Fix Committed |
To post a comment you must log in.
I get a nasty traceback when doing the aforementioned pip command. I am running the command in Windows 10 environment, but this still applies to Ubuntu.
The code print("Hello, world!") runs on Python 2.x and Python 3.x, so it's always a good idea to use parentheses with Python's print statements.
I'm sure you know that, but you missed one. ;)