Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
2bc071b3
Commit
2bc071b3
authored
Aug 05, 2014
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python 3 compatibility
parent
5c742446
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
pip-diff
vendor/pip-pop/pip-diff
+3
-3
pip-grep
vendor/pip-pop/pip-grep
+3
-3
No files found.
vendor/pip-pop/pip-diff
View file @
2bc071b3
...
...
@@ -79,18 +79,18 @@ def diff(r1, r2, include_fresh=False, include_stale=False):
r1
=
Requirements
(
r1
)
r2
=
Requirements
(
r2
)
except
ValueError
:
print
'There was a problem loading the given requirements files.'
print
(
'There was a problem loading the given requirements files.'
)
exit
(
os
.
EX_NOINPUT
)
results
=
r1
.
diff
(
r2
,
ignore_versions
=
True
)
if
include_fresh
:
for
line
in
results
[
'fresh'
]:
print
line
.
project_name
if
include_versions
else
line
print
(
line
.
project_name
if
include_versions
else
line
)
if
include_stale
:
for
line
in
results
[
'stale'
]:
print
line
.
project_name
if
include_versions
else
line
print
(
line
.
project_name
if
include_versions
else
line
)
...
...
vendor/pip-pop/pip-grep
View file @
2bc071b3
...
...
@@ -41,7 +41,7 @@ def grep(reqfile, packages, silent=False):
except
ValueError
:
if
not
silent
:
print
'There was a problem loading the given requirement file.'
print
(
'There was a problem loading the given requirement file.'
)
exit
(
os
.
EX_NOINPUT
)
...
...
@@ -52,12 +52,12 @@ def grep(reqfile, packages, silent=False):
if
requirement
.
req
.
project_name
in
packages
:
if
not
silent
:
print
'Package {} found!'
.
format
(
requirement
.
req
.
project_name
)
print
(
'Package {} found!'
.
format
(
requirement
.
req
.
project_name
)
)
exit
(
0
)
if
not
silent
:
print
'Not found.'
.
format
(
requirement
.
req
.
project_name
)
print
(
'Not found.'
.
format
(
requirement
.
req
.
project_name
)
)
exit
(
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment