• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Gallopsled / pwntools / 22222945663

20 Feb 2026 11:49AM UTC coverage: 73.592% (-0.3%) from 73.914%
22222945663

push

github

web-flow
Fix typo causing doctests not getting skipped (#2681)

Downloading all those libcs slowed down the CI a lot.

3861 of 6510 branches covered (59.31%)

13318 of 18097 relevant lines covered (73.59%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.68
/pwnlib/commandline/unhex.py
1
import argparse
1✔
2
import sys
1✔
3
from string import whitespace
1✔
4

5
from pwnlib.commandline import common
1✔
6
from pwnlib.util.fiddling import unhex
1✔
7

8
parser = common.parser_commands.add_parser(
1✔
9
    'unhex',
10
    help = 'Decodes hex-encoded data provided on the command line or via stdin.',
11
    description = 'Decodes hex-encoded data provided on the command line or via stdin.'
12
)
13

14
parser.add_argument('hex', nargs='*',
1✔
15
    help='Hex bytes to decode')
16

17
def main(args):
1✔
18
    try:
1✔
19
        o = getattr(sys.stdout, 'buffer', sys.stdout)
1✔
20
        if not args.hex:
1!
21
            s = getattr(sys.stdin, 'buffer', sys.stdin).read().translate(None, whitespace.encode('ascii'))
×
22
            o.write(unhex(s))
×
23
        else:
24
            o.write(unhex(''.join(args.hex)))
1✔
25
    except TypeError as e:
×
26
        sys.stderr.write(str(e) + '\n')
×
27
        raise
×
28

29
if __name__ == '__main__':
1✔
30
    common.main(__file__, main)
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc