Giter Site home page Giter Site logo

Comments (3)

jquast avatar jquast commented on September 26, 2024

.. yes, these things, including pexpect/init.py should just use the logging module, and then any consumer could set their own logging preferences (and log formatters). Unfortunately we have a bit of a 10-year legacy to maintain (I can only imagine what kind of weird pipelines pexpect logfiles may find themselves in),

The logfile should be opened in an encoding, like utf8 or cp437 in your case. We can fix that with your related unicode bugs. It could also use the %r or '{!r}'.format functions, so it would write to the ascii file as '\u2562' instead of trying to write ╢. That would probably be the easiest short-term fix if you're pressing for one --
fout.write ("%r, %r\n" % (fsm.input_symbol, fsm.current_state,))

from pexpect.

dcoshea avatar dcoshea commented on September 26, 2024

The reference to this issue in the above commit/pull request #96 was incorrect. I do have a fix for this issue that I plan to submit a pull request for once issue #84 is fixed.

from pexpect.

jquast avatar jquast commented on September 26, 2024

Closing, pexpect's terminal emulation code remains next release but no longer improved, marked deprecated by #240 Suggest any terminal emulation / screen scraping code efforts moved to more concerted project efforts such as https://github.com/selectel/pyte

from pexpect.

Related Issues (20)

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.