mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 18:46:38 -04:00
Fix Python 3 build, identified while testing devel/py-virtualenvwrapper: Exception occurred: File "/usr/local/lib/python3.7/site-packages/sphinx/registry.py", line 196, in load_extension mod = __import__(extname, None, None, ['setup']) File "/usr/local/lib/python3.7/site-packages/sphinxcontrib/bitbucket.py", line 26 except AttributeError, err: ^ SyntaxError: invalid syntax While I'm here, level up ports/python compliance: - Add python to CATEGORIES - Add LICENSE/LICENSE_FILE - Add NO_ARCH - Add missing RUN_DEPENDS - Correct RUN_DEPENDS version-specs Approved by: portmgr (blanket(s): build fix, ports compliance, dependencies) MFH: 2019Q3
13 lines
508 B
Python
13 lines
508 B
Python
# Fix Python 3 build
|
|
|
|
--- sphinxcontrib/bitbucket.py.orig 2019-08-11 09:19:09 UTC
|
|
+++ sphinxcontrib/bitbucket.py
|
|
@@ -23,7 +23,7 @@ def make_link_node(rawtext, app, type, slug, options):
|
|
base = app.config.bitbucket_project_url
|
|
if not base:
|
|
raise AttributeError
|
|
- except AttributeError, err:
|
|
+ except AttributeError as err:
|
|
raise ValueError('bitbucket_project_url configuration value is not set (%s)' % str(err))
|
|
#
|
|
slash = '/' if base[-1] != '/' else ''
|