All pastes #34941 Raw Edit

Unnamed

public python v1 · immutable
#34941 ·published 2005-12-26 23:13 UTC
rendered paste body
#!/usr/local/bin/pythonclass Sieve:			def SetVars(self,sieve,binary):		print "Setting sieve to: " + sieve		print "Setting binary to: " + binary		self.sieve = sieve		self.binary = binary	def OpenLog(self):		print "Opening file"		f = file(self.sieve + self.binary,'r')		for line in f:			print "Displaying a line"			print line			def CloseLog(self):		f.close()	s = Sieve()s.SetVars("/home/matt/sieve2/","proth_sieve_cmov_static_bsd")s.OpenLogs.CloseLog