ntt / eveapi

Python library for accessing the EVE Online API
Other
148 stars 57 forks source link

Empty attributes should be set to None #4

Closed nuxi closed 12 years ago

nuxi commented 12 years ago

Came across a corp without a ticker

http://evemaps.dotlan.net/corp/Eve_Corporation_4547898734

When you try to print the ticker you get this:

CorporationID: <type 'int'> 98067143 Ticker: <class 'eveapi.Element'> <Element 'ticker'> Name: <type 'unicode'> Eve Corporation 4547898734 AllianceID: <type 'int'> 99001163

XML snippet:

<corporationID>98067143</corporationID>
<corporationName>Eve Corporation 4547898734</corporationName>
<ticker />
<ceoID>1181977043</ceoID>
<ceoName>Uwant Mirriondorra</ceoName>
ntt commented 12 years ago

Should not be None but empty string, actually. On it. Got a fix but not happy with it.

ntt commented 12 years ago

fixed in 1.2.0