From c1cac04f835e7ef24f1558cb355dfae3dbaeebcb Mon Sep 17 00:00:00 2001 From: megazig Date: Thu, 18 Jun 2009 19:06:51 -0500 Subject: [PATCH] cleaned up len return for Matt_P --- title.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/title.py b/title.py index 4bc0a66..08bfc9f 100644 --- a/title.py +++ b/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 \ No newline at end of file + return out