Coder Social home page Coder Social logo

Comments (5)

kylef avatar kylef commented on June 24, 2024

Looking at the release notes, they removed gzip.

0.9 (2013-10-25)

webassets now support Python 3, and drops support for Python 2.5.

  • The gzip filter was removed.

Looking at the commit message miracle2k/webassets@d0fb241 there is an explanation to why.

It turns out that it is a problem on Python 2 as well. Obviously,
merging the output of the gzip filter with that of a text filter
(which all use unicode) wouldn't work. While that makes little
sense in practice, it turns out that the code that processes
filters failed with the gzip output due to it's assumptions about
unicode. While I could have worked around this in theory, I don't
think it's worthwhile adding another hack for this.

Either we want gzip or not, and if we do, we'll need to find a
proper solution that works on Python 3 as well.

from pelican-plugins.

justinmayer avatar justinmayer commented on June 24, 2024

Thanks for the heads-up, Randall. And kudos to Kyle for digging into why. (^_^)

from pelican-plugins.

rdegges avatar rdegges commented on June 24, 2024

Thanks guys! I completely missed that. Spent a bunch of time searching for gzip on their docs, and didn't even think to look in the changelog! ^^

from pelican-plugins.

kylef avatar kylef commented on June 24, 2024

@rdegges git grep is your friend. Spotted it in the change log.

  • git grep gzip to find references to it.
  • git blame to find the commit a line was changed.
  • git log | grep -B 4 gzip to find commits referencing gzip.

from pelican-plugins.

rdegges avatar rdegges commented on June 24, 2024

That is totally awesome. I've never even heard of git grep before, and I've been using git for almost 5 years -_-

Thanks again >:)

from pelican-plugins.

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.