예제 #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
파일: gs_score.py 프로젝트: thebend/fantasy
	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
		)