mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
check_consistent: print a copy-pasteable cp command (#3992)
This commit is contained in:
@@ -44,7 +44,10 @@ def main():
|
||||
for file2 in others:
|
||||
f2 = os.path.join(os.getcwd(), file2)
|
||||
if not filecmp.cmp(f1, f2):
|
||||
raise ValueError('File {f1} does not match file {f2}. Please copy it to {f2}'.format(f1=file1, f2=file2))
|
||||
raise ValueError(
|
||||
"File {f1} does not match file {f2}. Please copy it to {f2}\n"
|
||||
"Run either:\ncp {f1} {f2}\nOr:\ncp {f2} {f1}".format(f1=file1, f2=file2)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user