Git Product home page Git Product logo

Comments (5)

tash avatar tash commented on August 22, 2024

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.

ntt avatar ntt commented on August 22, 2024

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.

tash avatar tash commented on August 22, 2024

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.

ntt avatar ntt commented on August 22, 2024

It actually presents empty rowsets that way? Strange, I thought they were matched pairs of tags before.

Pushed. Anything else? :)

from eveapi.

tash avatar tash commented on August 22, 2024

empty starbase lists are returned that way.
looking good, tyvm :)

from eveapi.

Related Issues (16)

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.