[Python-modules-commits] [ipdb] 05/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 c89433792f7db0e1cd4c0788ef0b0d3f00c71f5f
Author: zvodd <zv.odd.101 at gmail.com>
Date:   Tue Feb 14 13:21:42 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 6c4bb92..90a6d6e 100644
--- a/ipdb/__main__.py
+++ b/ipdb/__main__.py
@@ -183,7 +183,7 @@ def main():
         print('Error:', mainpyfile, 'does not exist')
         sys.exit(1)
 
-    sys.argv[1:] = args     # Hide "pdb.py" from argument list
+    sys.argv = 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