Remove unused functions

This commit is contained in:
Chris Hunt 2019-09-19 01:38:05 -04:00
parent 89bbe73498
commit ea6eb1f898
1 changed files with 1 additions and 19 deletions

View File

@ -8,7 +8,6 @@ from __future__ import absolute_import
import logging
import os
import re
import shutil
import stat
import tarfile
@ -25,7 +24,7 @@ from pip._internal.utils.misc import ensure_dir
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import Iterable, List, Optional, Match, Text, Union
from typing import Iterable, List, Optional, Text, Union
logger = logging.getLogger(__name__)
@ -54,23 +53,6 @@ def current_umask():
return mask
def file_contents(filename):
# type: (str) -> Text
with open(filename, 'rb') as fp:
return fp.read().decode('utf-8')
def is_svn_page(html):
# type: (Union[str, Text]) -> Optional[Match[Union[str, Text]]]
"""
Returns true if the page appears to be the index page of an svn repository
"""
return (
re.search(r'<title>[^<]*Revision \d+:', html) and
re.search(r'Powered by (?:<a[^>]*?>)?Subversion', html, re.I)
)
def split_leading_dir(path):
# type: (Union[str, Text]) -> List[Union[str, Text]]
path = path.lstrip('/').lstrip('\\')