diff options
author | Spring Burst <16273755+Andor233@users.noreply.github.com> | 2021-04-21 15:08:39 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-04-21 16:13:43 +0800 |
commit | 184cc1fc280979945dfd16b0bb7275d8b3c27e95 (patch) | |
tree | 8c4789d8443738320f75a5a15bcf39d87cef730f | |
parent | b10de37fe036b3dd96384763ece9dc1478836287 (diff) | |
download | gitpython-184cc1fc280979945dfd16b0bb7275d8b3c27e95.tar.gz |
Remove windows special handling
Remove windows special handling when create Remote
-rw-r--r-- | git/remote.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/git/remote.py b/git/remote.py index 4194af1f..b2bf607a 100644 --- a/git/remote.py +++ b/git/remote.py @@ -9,7 +9,7 @@ import logging import re from git.cmd import handle_process_output, Git -from git.compat import (defenc, force_text, is_win) +from git.compat import (defenc, force_text) from git.exc import GitCommandError from git.util import ( LazyMixin, @@ -414,15 +414,6 @@ class Remote(LazyMixin, Iterable): self.repo = repo # type: 'Repo' self.name = name - if is_win: - # some oddity: on windows, python 2.5, it for some reason does not realize - # that it has the config_writer property, but instead calls __getattr__ - # which will not yield the expected results. 'pinging' the members - # with a dir call creates the config_writer property that we require - # ... bugs like these make me wonder whether python really wants to be used - # for production. It doesn't happen on linux though. - dir(self) - # END windows special handling def __getattr__(self, attr): """Allows to call this instance like |