Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
bbb07830
"tests/pipelines/vscode:/vscode.git/clone" did not exist on "16d500455b7ba6c92e1b7ddfbb6e41edbb3eff5e"
Unverified
Commit
bbb07830
authored
Sep 25, 2020
by
Sylvain Gugger
Committed by
GitHub
Sep 25, 2020
Browse files
Speedup check_copies script (#7394)
parent
8859c4f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
utils/check_copies.py
utils/check_copies.py
+0
-4
No files found.
utils/check_copies.py
View file @
bbb07830
...
@@ -138,10 +138,6 @@ def is_copy_consistent(filename, overwrite=False):
...
@@ -138,10 +138,6 @@ def is_copy_consistent(filename, overwrite=False):
obj1
,
obj2
=
search_patterns
.
groups
()
obj1
,
obj2
=
search_patterns
.
groups
()
theoretical_code
=
re
.
sub
(
obj1
,
obj2
,
theoretical_code
)
theoretical_code
=
re
.
sub
(
obj1
,
obj2
,
theoretical_code
)
# Blackify each version before comparing them.
observed_code
=
blackify
(
observed_code
)
theoretical_code
=
blackify
(
theoretical_code
)
# Test for a diff and act accordingly.
# Test for a diff and act accordingly.
if
observed_code
!=
theoretical_code
:
if
observed_code
!=
theoretical_code
:
found_diff
=
True
found_diff
=
True
...
...
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