Index: head/devel/py-xcaplib/Makefile =================================================================== --- head/devel/py-xcaplib/Makefile (revision 525875) +++ head/devel/py-xcaplib/Makefile (revision 525876) @@ -1,26 +1,25 @@ # Created by: Eugene Grosbein # $FreeBSD$ PORTNAME= xcaplib -PORTVERSION= 1.2.0 +PORTVERSION= 1.2.1 CATEGORIES= devel python MASTER_SITES= http://download.ag-projects.com/XCAP/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= python-${PORTNAME}-${PORTVERSION} MAINTAINER= python@FreeBSD.org COMMENT= Python XCAP client library -BROKEN= unfetchable - LICENSE= LGPL20+ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}application>=1.1.5:devel/py-application@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}lxml>=2.1.2:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${PY_FLAVOR} -NO_ARCH= yes USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes .include Index: head/devel/py-xcaplib/distinfo =================================================================== --- head/devel/py-xcaplib/distinfo (revision 525875) +++ head/devel/py-xcaplib/distinfo (revision 525876) @@ -1,3 +1,3 @@ -TIMESTAMP = 1503492165 -SHA256 (python-xcaplib-1.2.0.tar.gz) = 81807546fe433dbe21437475717d1a1af344d5322eb74df24d2a4856960a2f27 -SIZE (python-xcaplib-1.2.0.tar.gz) = 22163 +TIMESTAMP = 1581415302 +SHA256 (python-xcaplib-1.2.1.tar.gz) = 0ff3417fb8fb78b84950b473f833dc9e2dab9b1a691f7f30fdfa28c69f852f2f +SIZE (python-xcaplib-1.2.1.tar.gz) = 22440 Index: head/devel/py-xcaplib/files/patch-xcaplib-client.py =================================================================== --- head/devel/py-xcaplib/files/patch-xcaplib-client.py (nonexistent) +++ head/devel/py-xcaplib/files/patch-xcaplib-client.py (revision 525876) @@ -0,0 +1,27 @@ +--- xcaplib/client.py.orig 2016-01-12 11:22:06 UTC ++++ xcaplib/client.py +@@ -175,7 +175,7 @@ class XCAPClient(XCAPClientBase): + """ + try: + self.get(application, **kwargs) +- except HTTPError, ex: ++ except HTTPError as ex: + if ex.status == 404: + # how to ensure insert? + # 1. make openxcap to supply fixed tag into 404, like ETag: "none" +@@ -203,13 +203,13 @@ class XCAPClient(XCAPClientBase): + document = self.get(application, None, etag, **kwargs) + try: + self.get(application, node, document.etag, **kwargs) +- except HTTPError, ex: ++ except HTTPError as ex: + if etag is None and ex.status == 412: + continue + elif ex.status == 404: + try: + return self.put(application, resource, node, document.etag, **kwargs) +- except HTTPError, ex: ++ except HTTPError as ex: + if etag is None and ex.status == 412: + continue + else: Property changes on: head/devel/py-xcaplib/files/patch-xcaplib-client.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/py-xcaplib/files/patch-xcaplib-httpclient.py =================================================================== --- head/devel/py-xcaplib/files/patch-xcaplib-httpclient.py (nonexistent) +++ head/devel/py-xcaplib/files/patch-xcaplib-httpclient.py (revision 525876) @@ -0,0 +1,11 @@ +--- xcaplib/httpclient.py.orig 2016-01-12 11:22:06 UTC ++++ xcaplib/httpclient.py +@@ -164,7 +164,7 @@ class HTTPClient(object): + return HTTPResponse.from_addinfourl(response) + else: + raise RuntimeError('urllib2.open returned %r' % response) +- except urllib2.HTTPError, e: ++ except urllib2.HTTPError as e: + # Workaround for bug in urllib2 which doesn't reset the retry count + # when a negative, but different that 401 or 407, response is + # received. -Luci Property changes on: head/devel/py-xcaplib/files/patch-xcaplib-httpclient.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/py-xcaplib/files/patch-xcaplib-xcapclient.py =================================================================== --- head/devel/py-xcaplib/files/patch-xcaplib-xcapclient.py (nonexistent) +++ head/devel/py-xcaplib/files/patch-xcaplib-xcapclient.py (revision 525876) @@ -0,0 +1,20 @@ +--- xcaplib/xcapclient.py.orig 2016-01-12 11:22:06 UTC ++++ xcaplib/xcapclient.py +@@ -304,7 +304,7 @@ def run_completion(option, raise_ex=False): + finally: + for x in result: + log(x) +- print x ++ print(x) + + def complete_xpath(options, app, selector, action): + client = make_xcapclient(options) +@@ -517,7 +517,7 @@ def main(): + + try: + result = client_request(client, action, options, node_selector) +- except (urllib2.URLError, HTTPException), ex: ++ except (urllib2.URLError, HTTPException) as ex: + sys.exit('FATAL: %s: %s' % (type(ex).__name__, ex)) + if result.status==401 and not options.password and interactive(): + authreq = result.headers.get('www-authenticate') Property changes on: head/devel/py-xcaplib/files/patch-xcaplib-xcapclient.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/py-xcaplib/files/patch-xcaplib-xpath_completion.py =================================================================== --- head/devel/py-xcaplib/files/patch-xcaplib-xpath_completion.py (nonexistent) +++ head/devel/py-xcaplib/files/patch-xcaplib-xpath_completion.py (revision 525876) @@ -0,0 +1,11 @@ +--- xcaplib/xpath_completion.py.orig 2016-01-12 11:22:06 UTC ++++ xcaplib/xpath_completion.py +@@ -50,7 +50,7 @@ def fix_namespace_prefix(selector, prefix = 'default') + steps.append(prefix + ':' + step) + return '/'.join(steps) + +-def path_element((prefix, name)): ++def path_element(prefix, name): + if prefix: + return prefix + ':' + name + else: Property changes on: head/devel/py-xcaplib/files/patch-xcaplib-xpath_completion.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property