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

Commit855651b

Browse files
committed
ensure remote pdb script is readable
1 parent742d5b5 commit855651b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎Lib/pdb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
importcode
7676
importglob
7777
importjson
78+
importstat
7879
importtoken
7980
importtypes
8081
importatexit
@@ -3418,6 +3419,8 @@ def attach(pid, commands=()):
34183419
)
34193420
)
34203421
connect_script.close()
3422+
orig_mode=os.stat(connect_script.name).st_mode
3423+
os.chmod(connect_script.name,orig_mode|stat.S_IROTH|stat.S_IRGRP)
34213424
sys.remote_exec(pid,connect_script.name)
34223425

34233426
# TODO Add a timeout? Or don't bother since the user can ^C?
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ``PermissionError`` when reading remote exec script from ``-m pdb -p``.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp