capybara/virtualenv/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py
def _preparse_requirement(self, requires_dist):
        """Convert 'Foobar (1); baz' to ('Foobar ==1', 'baz')
        Split environment marker, add == prefix to version specifiers as
        necessary, and remove parenthesis.
        """
        parts = requires_dist.split(';', 1) + ['']
        distvers = parts[0].strip()
        mark = parts[1].strip()
        distvers = re.sub(self.EQEQ, r"\1==\2\3", distvers)
        distvers = distvers.replace('(', '').replace(')', '')
        return (distvers, mark)
def _preparse_requirement(self, requires_dist):
        """Convert 'Foobar (1); baz' to ('Foobar ==1', 'baz')
        Split environment marker, add == prefix to version specifiers as
        necessary, and remove parenthesis.
        """
        parts = requires_dist.split(';', 1) + ['']
        distvers = parts[0].strip()
        mark = parts[1].strip()
        distvers = re.sub(self.EQEQ, r"\1==\2\3", distvers)
        distvers = distvers.replace('(', '').replace(')', '')
        return (distvers, mark)
def _preparse_requirement ( self , requires_dist ) : parts = requires_dist . split ( ';' , 1 ) + [ '' ] distvers = parts [ 0 ] . strip ( ) mark = parts [ 1 ] . strip ( ) distvers = re . sub ( self . EQEQ , r"\1==\2\3" , distvers ) distvers = distvers . replace ( '(' , '' ) . replace ( ')' , '' ) return ( distvers , mark )
Convert 'Foobar (1); baz' to ('Foobar ==1', 'baz')
        Split environment marker, add == prefix to version specifiers as
        necessary, and remove parenthesis.
Convert Foobar ( 1 ) ; baz to ( Foobar == 1 baz ) Split environment marker add == prefix to version specifiers as necessary and remove parenthesis .