From 6150a131f004675f810882478dca04605b97e894 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 28 Nov 2009 18:22:45 -0600 Subject: [PATCH] move rsplit() call to assignment instead of return --- modules/catalyst/target/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/catalyst/target/generic.py b/modules/catalyst/target/generic.py index 84865e95..b27249d9 100644 --- a/modules/catalyst/target/generic.py +++ b/modules/catalyst/target/generic.py @@ -32,8 +32,8 @@ class generic_target(catalyst.target.target): self._target = self.get_target_name() def get_target_name(self): - class_name = self.__class__.__name__ - return class_name.rsplit('_', 1)[0] + class_name = self.__class__.__name__.rsplit('_', 1)[0] + return class_name def set_autoresume_path(self): self.settings["autoresume_path"] = catalyst.util.normpath(self.settings["storedir"] + \ -- 2.26.2