From ae6e080bd9a25d46042a591300f63f1bac2b4e92 Mon Sep 17 00:00:00 2001 From: Thomas Omans Date: Mon, 28 Oct 2013 15:15:04 -0700 Subject: [PATCH] Pip module: fixing issue with python 2.4 support Python 2.4.3 returns: TypeError: expected character buffer object startswith is expecting only a string instead of a tuple like newer versions allow. --- packaging/pip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/pip b/packaging/pip index 45fc823cbc3..2b03a73207b 100644 --- a/packaging/pip +++ b/packaging/pip @@ -290,7 +290,7 @@ def main(): # Ok, we will reconstruct the option string extra_args = ' '.join(args_list) - if name.startswith(('.','/')): + if name.startswith('.') or name.startswith('/'): is_local_path = True # for tarball or vcs source, applying --use-mirrors doesn't really make sense is_package = is_vcs or is_tar or is_local_path # just a shortcut for bool