mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Support writing int and float items to a plist.
They are written as normal string items, so anything using the plist later on will need to know the context, but at least now there's no need to first convert int or float data to strings before writing a plist.
This commit is contained in:
parent
2b55687aa5
commit
43abf8e3df
1 changed files with 2 additions and 0 deletions
|
@ -242,6 +242,8 @@ class pldata:
|
|||
self.data.append('>')
|
||||
elif type(item) == str:
|
||||
self.write_string(item)
|
||||
elif type(item) in [int, float]:
|
||||
self.write_string(str(item))
|
||||
else:
|
||||
raise PListError(0, "unsupported type")
|
||||
def write(self, item):
|
||||
|
|
Loading…
Reference in a new issue