Giter Club home page Giter Club logo

Comments (5)

ralphbean avatar ralphbean commented on June 12, 2024

Word.

from ansi2html.

ralphbean avatar ralphbean commented on June 12, 2024

I pushed a feature/python3 branch. Can you verify that it works for you?

https://github.com/ralphbean/ansi2html/tree/feature/python3

from ansi2html.

nima avatar nima commented on June 12, 2024

Hey Ralph,

Okay, the new code looks good, I still had to make a couple of changes however:

  1. I needed to drop six.py in there somewhere
  2. in converter.py:

from .style import template as style_template
from my_libraries import six #. this is obviously specific to my install
map = six.moves.map
zip = six.moves.zip

  1. in init.py:
    from .converter import Ansi2HTMLConverter

Sorry I'd have sent you a patch, but this place I'm at doesn't even supply us with a git client.

Nima

from ansi2html.

ralphbean avatar ralphbean commented on June 12, 2024

Okay. Once I do a release, setuptools should take care of installing six.py for us.

One thing I'm not sure of is the:

from .converter import Ansi2HTMLConverter

Lemme go poke at that. Can you tell me what version of python3 you're trying this with? python3.1? python3.2?

from ansi2html.

ralphbean avatar ralphbean commented on June 12, 2024

Ok, that relative import works in both python2.7 and python3.2. I'm going to merge this into the develop branch!

from ansi2html.

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.