[Python-modules-commits] [ipdb] 04/14: clean sys.argv correctly
Andrey Rahmatullin
wrar at moszumanska.debian.org
Thu Jan 18 17:50:21 UTC 2018
This is an automated email from the git hooks/post-receive script.
wrar pushed a commit to annotated tag 0.10.3
in repository ipdb.
commit e395f8eb1d0970282b8cc0703f2e3fb03bfc8724
Author: zvodd <zv.odd.101 at gmail.com>
Date: Tue Feb 14 07:08:14 2017 +1100
clean sys.argv correctly
---
ipdb/__main__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipdb/__main__.py b/ipdb/__main__.py
index 6e65e34..6c4bb92 100644
--- a/ipdb/__main__.py
+++ b/ipdb/__main__.py
@@ -183,7 +183,7 @@ def main():
print('Error:', mainpyfile, 'does not exist')
sys.exit(1)
- del sys.argv[0] # Hide "pdb.py" from argument list
+ sys.argv[1:] = args # Hide "pdb.py" from argument list
# Replace pdb's dir with script's dir in front of module search path.
sys.path[0] = os.path.dirname(mainpyfile)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/ipdb.git
More information about the Python-modules-commits
mailing list