[Python-checkins] CVS: python/dist/src/Lib netrc.py,1.5,1.6

Eric S. Raymond python-dev@python.org
Thu, 13 Jul 2000 06:25:09 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17023

Modified Files:
	netrc.py 
Log Message:
Apply Greg Kochanski's fix for open/265.


Index: netrc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/netrc.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** netrc.py	2000/07/13 13:12:21	1.5
--- netrc.py	2000/07/13 13:25:07	1.6
***************
*** 9,16 ****
          if not file:
              file = os.path.join(os.environ['HOME'], ".netrc")
!         try:
!             fp = open(file)
!         except:
!             return None
          self.hosts = {}
          self.macros = {}
--- 9,13 ----
          if not file:
              file = os.path.join(os.environ['HOME'], ".netrc")
!         fp = open(file)
          self.hosts = {}
          self.macros = {}