Skip to content

Commit 184cc1f

Browse files
Andor233Byron
authored andcommitted
Remove windows special handling
Remove windows special handling when create Remote
1 parent b10de37 commit 184cc1f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

git/remote.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import re
1010

1111
from git.cmd import handle_process_output, Git
12-
from git.compat import (defenc, force_text, is_win)
12+
from git.compat import (defenc, force_text)
1313
from git.exc import GitCommandError
1414
from git.util import (
1515
LazyMixin,
@@ -414,15 +414,6 @@ def __init__(self, repo, name):
414414
self.repo = repo # type: 'Repo'
415415
self.name = name
416416

417-
if is_win:
418-
# some oddity: on windows, python 2.5, it for some reason does not realize
419-
# that it has the config_writer property, but instead calls __getattr__
420-
# which will not yield the expected results. 'pinging' the members
421-
# with a dir call creates the config_writer property that we require
422-
# ... bugs like these make me wonder whether python really wants to be used
423-
# for production. It doesn't happen on linux though.
424-
dir(self)
425-
# END windows special handling
426417

427418
def __getattr__(self, attr):
428419
"""Allows to call this instance like

0 commit comments

Comments
 (0)