[Python-checkins] CVS: python/dist/src/Mac/Lib pythonprefs.py,1.7,1.8

Jack Jansen jackjansen@users.sourceforge.net
Sat, 01 Sep 2001 15:36:11 -0700


Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv16990/Python/Mac/Lib

Modified Files:
	pythonprefs.py 
Log Message:
Added preferences/startup options for division warning
and accepting unix-style newlines on input.

Index: pythonprefs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/pythonprefs.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** pythonprefs.py	2001/02/11 01:07:50	1.7
--- pythonprefs.py	2001/09/01 22:36:09	1.8
***************
*** 17,21 ****
  
  # version
! CUR_VERSION=7
  
  preffilename = PstringLoader(AnyResLoader('STR ', resname=PREFNAME_NAME)).load()
--- 17,21 ----
  
  # version
! CUR_VERSION=8
  
  preffilename = PstringLoader(AnyResLoader('STR ', resname=PREFNAME_NAME)).load()
***************
*** 24,28 ****
  class PoptLoader(VersionLoader):
  	def __init__(self, loader):
! 		VersionLoader.__init__(self, "bbbbbbbbbbbbbb", loader)
  		
  	def versioncheck(self, data):
--- 24,28 ----
  class PoptLoader(VersionLoader):
  	def __init__(self, loader):
! 		VersionLoader.__init__(self, "bbbbbbbbbbbbbbbb", loader)
  		
  	def versioncheck(self, data):
***************
*** 52,56 ****
  		self.loader.save(newdata)
  		
! popt_default_default = NullLoader(chr(CUR_VERSION) + 8*'\0')
  popt_default = AnyResLoader('Popt', POPT_ID, default=popt_default_default)
  popt_loader = ResLoader(pref_fss, 'Popt', POPT_ID, default=popt_default)
--- 52,56 ----
  		self.loader.save(newdata)
  		
! popt_default_default = NullLoader(chr(CUR_VERSION) + 14*'\0' + '\001')
  popt_default = AnyResLoader('Popt', POPT_ID, default=popt_default_default)
  popt_loader = ResLoader(pref_fss, 'Popt', POPT_ID, default=popt_default)
***************
*** 86,90 ****
  			dict['unbuffered'], dict['debugging'], dummy, dict['keep_console'], \
  			dict['nointopt'], dict['noargs'], dict['tabwarn'], \
! 			dict['nosite'], dict['nonavservice'], dict['delayconsole'] = flags
  		return dict
  		
--- 86,91 ----
  			dict['unbuffered'], dict['debugging'], dummy, dict['keep_console'], \
  			dict['nointopt'], dict['noargs'], dict['tabwarn'], \
! 			dict['nosite'], dict['nonavservice'], dict['delayconsole'], \
! 			dict['divisionwarn'], dict['unixnewlines'] = flags
  		return dict
  		
***************
*** 97,101 ****
  			dict['unbuffered'], dict['debugging'], 0, dict['keep_console'], \
  			dict['nointopt'], dict['noargs'], dict['tabwarn'], \
! 			dict['nosite'], dict['nonavservice'], dict['delayconsole']
  		self.popt.save(flags)
  
--- 98,103 ----
  			dict['unbuffered'], dict['debugging'], 0, dict['keep_console'], \
  			dict['nointopt'], dict['noargs'], dict['tabwarn'], \
! 			dict['nosite'], dict['nonavservice'], dict['delayconsole'], \
! 			dict['divisionwarn'], dict['unixnewlines']
  		self.popt.save(flags)