Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork965
Commit78d63d9
committed
Let close_fds be True on all platforms
Since Python 3.7, subprocess.Popen supports close_fds=True on allplatforms, including Windows, and it is the default, includingwhen arguments for standard streams have non-None values passed.3.7 is the lowest version of Python that GitPython supports. Sothis omits the close_fds=True argument from the calls where it waspresent. This has the same effect (in 3.7 and higher) as passingclose_fds=True.When the the close_fd argument was added to the Popen call ingit.cmd.Git.execute in1ee2afb, Python 2 was still supported. InPython 2, close_fds defaulted to False. This appears to be thereason it had been passed explicitly. It was conditioned on beingon a Unix-like system because having it True on Windows wouldprevent stdin, stdout, or stderr redirection.1 parent96acc22 commit78d63d9
2 files changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | | - | |
1005 | 1004 | | |
1006 | 1005 | | |
1007 | 1006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
0 commit comments
Comments
(0)