Comments (5)
in tag_end:
if (not self.has_cdata) and self._last is this and name != 'rowset':
if attributes:
# tag of the form <tag attribute=bla ... />
e = Element()
setattr(self.container, this._name, e)
for i in xrange(0, len(attributes), 2):
setattr(e, attributes[i], attributes[i+1])
else:
# tag of the form: , treat as empty string.
setattr(self.container, this._name, "")
else:
self.container._attributes2.append(this._name)
setattr(self.container, this._name, this)
from eveapi.
hurrr derp. I must have been sleeping, I could have sworn I put i / i+1 when I wrote that :P Thanks again. Had to fix another little thing anyway, too.
Fix pushed. Keeping version at 1.2.3 for no real reason, too! :P
from eveapi.
you should check the name for 'rowset' too (2nd line previous post... otherwise if it has no cdata like "<rowset/>", the element won't be de-serialized as dict, but as an empty string, which is annoying ;)
from eveapi.
It actually presents empty rowsets that way? Strange, I thought they were matched pairs of tags before.
Pushed. Anything else? :)
from eveapi.
empty starbase lists are returned that way.
looking good, tyvm :)
from eveapi.
Related Issues (16)
- Some small fixes and enhancements HOT 1
- Get errors trying to run apitest.py HOT 6
- HTTP error codes HOT 3
- Migrate to Python 3.X HOT 1
- Messed columns in api.eve.CharacterAffiliation() HOT 3
- a bug from Serenity server API HOT 1
- Update pypi package to 1.3.2 (is 1.2.6 now) HOT 7
- Python 3 support on pypi HOT 1
- Requests returning errors are not cached HOT 1
- Empty attributes should be set to None HOT 2
- Certain keys should probably never be converted to int/float/date HOT 1
- Rowset column have a name, row - doesn't always have an attribute with this name HOT 1
- Recent fix for row data missing attributes that were defined in the rowset HOT 6
- TypeError when running apitest.py HOT 1
- eveapi starbase detail not pulling correctly. HOT 4
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 eveapi.