Coder Social home page Coder Social logo

cvrfparse's People

Contributors

ahmadnazir avatar mschiffm avatar santosomar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cvrfparse's Issues

Supporting Python 2.7.6

Hi,

I am running into a few errors when running with python 2.7.6 which is most certainly because the tool was developed using an earlier python version. Can you please share the version of python that was used to develop this tool?

More specifically, I am using Python 2.7.6. and I get the following error when I try to parse the cvrf elements:

./cvrfparse.py -f sample-xml/CVRF-1.1-cisco-sa-20110525-rvs4000.xml  --vuln all
Traceback (most recent call last):
  File "./cvrfparse.py", line 286, in <module>
    main(progname)
  File "./cvrfparse.py", line 281, in main
    cvrf_dispatch(cvrf_doc, parsables, collate_vuln=args.collate_vuln, strip_ns=args.strip_ns)
  File "./cvrfparse.py", line 151, in cvrf_dispatch
    cvrf_dump(results, strip_ns)
  File "./cvrfparse.py", line 130, in cvrf_dump
    f = codecs.EncodedFile(sys.stdout, input="UTF-8")
TypeError: EncodedFile() got an unexpected keyword argument 'input'
cvrfparse.py: TypeError: EncodedFile() got an unexpected keyword argument 'input'

This can easily be fixed fixed by changing the keyword to 'data_encoding' (or having no keyword at all which would make the tool backwards compatible.).

I would be happy to create a pull request for this change.

Thanks,
Ahmad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.