Пример #1
0
 def __repr__(self):
     return "{:20.20} {:20.20} {:20.20} {:20.20}".format(
         util.nz(self.aggressor).encode("utf8"),
         self.penalty_type,
         util.nz(self.casualty).encode("utf8"),
         util.nz(self.servee).encode("utf8"),
     )
Пример #2
0
	def __repr__(self):
		# no more than 6 people on ice with two digit numbers plus comma separators
		# 6*2 + 5 = 17 = max length
		return '{:1} {:>5} {:3} {:2} {:2} {:2} {:17} {:17}'.format(
			self.period,
			self.time,
			self.team,
			self.scorer,
			util.nz(self.assist1),
			util.nz(self.assist2),
			util.get_number_list_string(self.away),
			util.get_number_list_string(self.home)
		)
Пример #3
0
	def __repr__(self):
		return '{:1} {:>5} {:2} {:1} {:15}'.format(
			self.period,
			self.time,
			util.nz(self.player),
			self.minutes,
			self.penalty_type
		)