Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415991 - www-client/pybugz prints unneeded/unwanted escape sequence
Summary: www-client/pybugz prints unneeded/unwanted escape sequence
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-14 20:22 UTC by Tim Sammut (RETIRED)
Modified: 2013-10-23 15:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Sammut (RETIRED) gentoo-dev 2012-05-14 20:22:18 UTC
Output from bugz includes an unwanted escape sequence. This can be see using:

$ bugz --help | cat -v 
^[[?1034husage: bugz [-h] [--config-file CONFIG_FILE] [--connection CONNECTION]
            [-b BASE] [-u USER] [-p PASSWORD] [--passwordcmd PASSWORDCMD] [-q]
            [--columns COLUMNS] [--encoding ENCODING] [--skip-auth]
            [--version]
            {attach,attachment,get,login,logout,modify,post,search} ...

<-- truncated -->

This causes problems when using the bugz output with other programs. For example:

$ for BUG in $(bugz --quiet search --assigned-to security@gentoo.org | cut -d' ' -f1); do bugz get $BUG; done
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2013-05-15 16:48:47 UTC
I cannot reproduce problem in your actual use example.  copy/pasting that one liner, I get no escape sequences showing in any of the output.  Further, it seems to run forever and I had to kill it.  ^C only seems to kill the one get, continues with the next...  substituting for bugs assigned to me, I get no escape sequences.  

As for the $ bugz --help | cat -v example.  That is from python's argparse module which handles the cli help.  It shows for me using python-2.7.4.  a prospective gsoc student using python-2.7.1 could not reproduce it.  So this example is not a pybugz bug, but an upstream python bug.
Comment 2 William Hubbs gentoo-dev 2013-10-23 15:55:44 UTC
I am also unable to reproduce this.
If there is still an issue, please file a bug against python; the output
you are pointing out comes from the argparse module and not from pybugz
directly.