Comments (3)
fixed in 9a3dffb
from frogfs.
Thanks.
It's a shame that the fix reduces the readability of the code. The first line is self-documenting, the second, not so much.
- name, _ = os.path.splitext(file.removeprefix('transform-'))
+ name, _ = os.path.splitext(file[10:])
I'm curious if python has something like poly-fills (like in javascript) to prevent having to reduce the code quality to support older VM versions?
from frogfs.
Yeah, "monkey patching" is what they call it in Python. Because there is the startswith(...) lines that guard it, I'm okay with the less than elegant solution.
from frogfs.
Related Issues (20)
- please add a branch for v3 HOT 1
- size of gzip files is incorrect HOT 2
- Invalid file position when seeking in heatshrink compressed file
- MicroPython HOT 2
- Compressor ID lookup
- Directory optimization HOT 1
- Benchmark
- CONFIG parameter broken in target_add_frogfs (next branch) HOT 1
- mkfrogfs.py fails if root dir has subdirectories starting with dot (next branch) HOT 9
- mkfrogfs.py directory filters are broken HOT 14
- support for mime types HOT 3
- how to use with VSCode + Platform.io? HOT 4
- publishing at components.espressif.com HOT 3
- suggestion: use project_include.cmake to automatically import frogfs functions HOT 1
- Compile fail ESP32 IDF Eclipse plugin - PATH_MAX not defined HOT 1
- Compiler warning in vfs.c: free' discards 'const' qualifier HOT 2
- IDF build error after reconfigure HOT 3
- Look into ESP32 ROM miniz HOT 1
- Cache created by mkfrogfs.py breaks 'idf.py clean' HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frogfs.