Skip to content

Commit e4397a9

Browse files
committed
Fix reference to getattr
1 parent 28f2eae commit e4397a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sc2reader/events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ def load_context(self, replay):
1919
# print "Hi", self.pid, replay.person, self.__class__
2020
if self.pid != 16 and self.pid not in replay.person:
2121
self.logger.error("Bad pid ({}) for event {} at {}.".format(self.pid, self.__class__, Length(seconds=int(self.frame/16))))
22-
22+
2323
if self.pid != 16:
2424
self.player = replay.person[self.pid]
2525

2626
def _str_prefix(self):
27-
player_name = self.player.name if self.getattr(self,'pid', 16)!=16 else "Global"
27+
player_name = self.player.name if getattr(self,'pid', 16)!=16 else "Global"
2828
return "%s\t%-15s " % (Length(seconds=int(self.frame/16)), player_name)
2929

3030
def __str__(self):

0 commit comments

Comments
 (0)