Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
6e5d608b
Commit
6e5d608b
authored
Feb 06, 2019
by
Vladislav Yarmak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1337-diff: fix some pep8 complaints
parent
0e774055
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
win/tools/1337-diff/1337-diff.py
win/tools/1337-diff/1337-diff.py
+6
-3
No files found.
win/tools/1337-diff/1337-diff.py
View file @
6e5d608b
...
...
@@ -76,8 +76,10 @@ def zip_files_bytes(left, right):
pass
end_marker
=
EndMarker
()
left_iter
=
itertools
.
chain
.
from_iterable
(
feed_chunks
(
left
))
right_iter
=
itertools
.
chain
.
from_iterable
(
feed_chunks
(
right
))
left_iter
=
itertools
.
chain
.
from_iterable
(
feed_chunks
(
left
))
right_iter
=
itertools
.
chain
.
from_iterable
(
feed_chunks
(
right
))
for
a
,
b
in
itertools
.
zip_longest
(
left_iter
,
right_iter
,
fillvalue
=
end_marker
):
...
...
@@ -98,7 +100,8 @@ def diff(left, right, limit=None):
offset
+=
1
def
compose_diff_file
(
orig
,
patched
,
output
,
header
,
*
,
limit
=
None
,
offset_adjustment
=
True
):
def
compose_diff_file
(
orig
,
patched
,
output
,
header
,
*
,
limit
=
None
,
offset_adjustment
=
True
):
output
.
write
(
HEADER_FORMAT
%
(
header
.
encode
(
'latin-1'
),))
adj
=
OFFSET_ADJUSTMENT
if
offset_adjustment
else
0
for
offset
,
a
,
b
in
diff
(
orig
,
patched
,
limit
):
...
...
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