-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Allow multiple shadow files to be specified #5023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
42d4a6f
d69b68d
62b79a2
28ca852
003545a
605a37d
34677a9
0ec018b
73752d7
3af2ed6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,11 @@ def md5(self, path: str) -> str: | |
self.read(path) | ||
return self.hash_cache[path] | ||
|
||
def samefile(self, f1: str, f2: str) -> bool: | ||
s1 = self.stat(f1) | ||
s2 = self.stat(f2) | ||
return os.path.samestat(s1, s2) # type: ignore | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm curious -- why do you need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We were missing this function in the stub. We just merged the PR adding it, so this ignore can be removed as soon as we sync typeshed. |
||
|
||
|
||
def copy_os_error(e: OSError) -> OSError: | ||
new = OSError(*e.args) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the rest of the function could be shortened to