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

Commitbbe98e8

Browse files
shadchinmiss-islington
authored andcommitted
Add missedstream argument (pythonGH-111775)
* Add missed `stream` argument* Add news(cherry picked from commit1ff6c14)Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
1 parentb3384af commitbbe98e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎Lib/importlib/resources/simple.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def is_dir(self):
6969
defopen(self,mode='r',*args,**kwargs):
7070
stream=self.parent.reader.open_binary(self.name)
7171
if'b'notinmode:
72-
stream=io.TextIOWrapper(*args,**kwargs)
72+
stream=io.TextIOWrapper(stream,*args,**kwargs)
7373
returnstream
7474

7575
defjoinpath(self,name):
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix:meth:`importlib.resources.simple.ResourceHandle.open` for text mode,
2+
added missed ``stream`` argument.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp