Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit184cc1f

Browse files
Andor233Byron
authored andcommitted
Remove windows special handling
Remove windows special handling when create Remote
1 parentb10de37 commit184cc1f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

‎git/remote.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
importre
1010

1111
fromgit.cmdimporthandle_process_output,Git
12-
fromgit.compatimport (defenc,force_text,is_win)
12+
fromgit.compatimport (defenc,force_text)
1313
fromgit.excimportGitCommandError
1414
fromgit.utilimport (
1515
LazyMixin,
@@ -414,15 +414,6 @@ def __init__(self, repo, name):
414414
self.repo=repo# type: 'Repo'
415415
self.name=name
416416

417-
ifis_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)

[8]ページ先頭

©2009-2025 Movatter.jp