Commit c2f72efd authored by Jason R. Coombs's avatar Jason R. Coombs

Deprecate Subversion download functionality. Ref #1502. Used UserWarning...

Deprecate Subversion download functionality. Ref #1502. Used UserWarning instead of DeprecationWarning so it's visible to users who might be relying on this functionality.
parent 5b869d5c
Deprecated support for downloads from Subversion in package_index/easy_install.
......@@ -7,6 +7,7 @@ import socket
import base64
import hashlib
import itertools
import warnings
from functools import wraps
from setuptools.extern import six
......@@ -848,6 +849,7 @@ class PackageIndex(Environment):
raise DistutilsError("Unexpected HTML page found at " + url)
def _download_svn(self, url, filename):
warnings.warn("SVN download support is deprecated", UserWarning)
url = url.split('#', 1)[0] # remove any fragment for svn's sake
creds = ''
if url.lower().startswith('svn:') and '@' in url:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment