kovacsbalu / coil Goto Github PK
View Code? Open in Web Editor NEWCoil: A Configuration Library
Home Page: http://code.google.com/p/coil
License: MIT License
Coil: A Configuration Library
Home Page: http://code.google.com/p/coil
License: MIT License
What steps will reproduce the problem?
When converting a coil struct to text via the internal string method, and
the struct has an empty dictionary in it, the output misses a new line.
What is the expected output?
key: {}
key2: value
What do you see instead?
key: {}key2: value
Index: coil/coil/struct.py
===================================================================
--- coil/coil/struct.py (revision 297206)
+++ coil/coil/struct.py (working copy)
@@ -457,7 +457,7 @@
if child:
result = "%s{\n%s\n%s}\n" % (result, child, prefix)
else:
- result += "{}"
+ result += "{}\n"
else:
result = "%s%s\n" % (result, stritem(val))
Original issue reported on code.google.com by [email protected]
on 30 Jul 2009 at 5:42
Branch name:
trunk
Purpose of code changes on this branch:
Add support for full paths in struct.has_key()
When reviewing my code changes, please focus on:
Performance takes a hit on calls to has_key() for first-level keys that are not
in the struct, but it seems like the cleanest way without adding a flattened
list of keys or reimplementing struct.get
After the review, I'll merge this branch into:
/trunk
Original issue reported on code.google.com by [email protected]
on 18 Feb 2012 at 8:06
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.