Giter VIP home page Giter VIP logo

Comments (13)

arsenetar avatar arsenetar commented on July 20, 2024

Running 2to3 seems to fix most issues... leaving just line 9 in templates/panels/headers.html. At least everything seems to be working for me at this point with running 2to3 and that edit.

-       {% for key, value in headers.iteritems() %}
+       {% for key, value in headers.items() %}

from flask-debugtoolbar.

jacobsvante avatar jacobsvante commented on July 20, 2024

Does anyone have a branch with py3 compatibility?

from flask-debugtoolbar.

justinmayer avatar justinmayer commented on July 20, 2024

Great to see Python 3 support has landed. Thanks, Matt!

Do you think you might be able to push out a release in the near future?

from flask-debugtoolbar.

mgood avatar mgood commented on July 20, 2024

This probably needs some more testing, but I've added a tentative fix. I'm following @mitsuhiko's approach to using one codebase that's compatible with 2.6, 2.7 and 3.3+, so 2to3 is not required.

I'd been trying to come up with a better comprehensive testing approach, but for now I've checked in a really basic sanity test that checks that the toolbar at least loads for a very simple app. It can be run locally with Tox, or automated results are in Travis CI:

https://travis-ci.org/mgood/flask-debugtoolbar

from flask-debugtoolbar.

jacobsvante avatar jacobsvante commented on July 20, 2024

Great job @mgood. This got rid of the exceptions thrown during tox testing, though I haven't had time to test it manually yet but I'll report back if I find any issues.

from flask-debugtoolbar.

mgood avatar mgood commented on July 20, 2024

Yeah, I'd appreciate you trying it out before I make a new release. I've only tested it with fairly trivial example apps since I don't have another app running with Python 3 yet.

from flask-debugtoolbar.

jacobsvante avatar jacobsvante commented on July 20, 2024

Seems to be working great here, no issues so far!

from flask-debugtoolbar.

justinmayer avatar justinmayer commented on July 20, 2024

Tested here and functioning precisely as expected. Well done!

from flask-debugtoolbar.

justinmayer avatar justinmayer commented on July 20, 2024

Hey Matt. Any possibility of releasing a new version of Flask-DebugToolbar? Would be great to have a released version that supports Python 3.3.

from flask-debugtoolbar.

justinmayer avatar justinmayer commented on July 20, 2024

Given that it's been nearly a year since the last release, is there any chance of a new Flask-DebugToolbar release soon? Anything I can do to help?

from flask-debugtoolbar.

jacobsvante avatar jacobsvante commented on July 20, 2024

Working well for at least me and @justinmayer so this should be safe to release. This is a package that is used under development environments only so IMHO there'd be no great harm if a bug was found at a later stage.

from flask-debugtoolbar.

mgood avatar mgood commented on July 20, 2024

Sorry for the delay. I just uploaded version 0.9.0 with this and other changes. Thanks for the help and testing.

from flask-debugtoolbar.

eirnym avatar eirnym commented on July 20, 2024

Will you add 'Programming Language :: Python :: 3' classifier?

from flask-debugtoolbar.

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.