mirror of
https://github.com/grp/Wii.py.git
synced 2025-06-18 23:05:48 -04:00
cleaned up len return for Matt_P
This commit is contained in:
parent
fc57563e92
commit
c1cac04f83
5
title.py
5
title.py
@ -107,8 +107,7 @@ class Ticket:
|
||||
open(fn, "wb").write(self.tik.pack())
|
||||
return fn
|
||||
def __len__(self):
|
||||
sz = len(self.tik)
|
||||
return sz
|
||||
return len(self.tik)
|
||||
|
||||
class TMD:
|
||||
"""This class allows you to edit TMDs. TMD (Title Metadata) files are used in many places to hold information about titles. The parameter f to the initialization is the filename to open and create a TMD from."""
|
||||
@ -463,4 +462,4 @@ class WAD:
|
||||
out += str(Ticket(rawtik))
|
||||
out += str(TMD(rawtmd))
|
||||
|
||||
return out
|
||||
return out
|
||||
|
Loading…
Reference in New Issue
Block a user