Comments (6)
Original comment by tim.lauridsen
on 5 May 2010 at 9:37
Attachments:
from iniparse.
I have added a diff file to see the changes made to the code by the 2to3 tool.
Original comment by tim.lauridsen
on 5 May 2010 at 9:38
from iniparse.
Yeah - create a iniparse.utils module and move tidy to it. Also, change the
corresponding lines in iniparse/__init__.py
Original comment by [email protected]
on 7 May 2010 at 2:21
from iniparse.
Based on a 1-minute look at the diff, the 2to3 changes look mostly sane, except
for a
few extra list creations that I think could be avoided (in the
iterkeys/itervalues/iteritems functions).
I think these changes are sufficient if we want iniparse to work with files
opened in
text mode. However, currently iniparse supports both byte and unicode strings.
If
we want to preserve that functionality, we'll probably have to make more
changes.
Original comment by [email protected]
on 7 May 2010 at 2:31
from iniparse.
ok, I have commited the changes for moving tidy
http://code.google.com/p/iniparse/source/detail?r=139
I was not my plan to add the 2to3 diff to upstream at this point in time, i will
modify the rpm build spec file to build both a python 2.x version and python
3.x one
by running 2to3 on the sources before the build. So no need to convert upstream
sources at this point in time.
Original comment by tim.lauridsen
on 8 May 2010 at 7:10
from iniparse.
sounds good.
Original comment by [email protected]
on 8 May 2010 at 7:09
- Changed state: Fixed
from iniparse.
Related Issues (20)
- Documentation is non-existent
- Integration with command-line parsing
- Ability to append items to list in config file HOT 1
- Docs are misleading: All variables are 'string' type HOT 3
- Make it easier to access non-string values
- config object are not passable to Queue object from multiprocessing module. HOT 8
- Adaptation to python 3 HOT 13
- Key/value separator should be '=' rather than ' = ' HOT 2
- Inaccurate parsing compared to proper Windows functions HOT 4
- config.section.key fails rather than returning Undefined for undefined section HOT 1
- ConfigParse compat mode with a defaults {'foo'=None} returns string 'None' HOT 2
- get_sections and get_options methods for INIConfig and INISection HOT 1
- Options in inifile with name beginning with REM are skipped HOT 1
- test_compat fails: missing cfgparse.1 HOT 3
- Leading whitespace in front of a value make the parsing fail HOT 2
- Add option after commented-out option example HOT 7
- Regression in compat.RawConfigParser.remove_option
- Python 3 support HOT 1
- Unable to set values in DEFAULT section
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 iniparse.