[Python-checkins] CVS: python/dist/src/Lib webbrowser.py,1.9,1.10

Eric S. Raymond esr@users.sourceforge.net
Tue, 23 Jan 2001 07:49:37 -0800


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

Modified Files:
	webbrowser.py 
Log Message:
Fixed autoraise glitches.


Index: webbrowser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/webbrowser.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** webbrowser.py	2001/01/23 13:49:44	1.9
--- webbrowser.py	2001/01/23 15:49:34	1.10
***************
*** 76,80 ****
              self.command = cmd
  
!         def open(self, url, new=0):
              os.system(self.command % url)
  
--- 76,80 ----
              self.command = cmd
  
!         def open(self, url, new=0, autoraise=1):
              os.system(self.command % url)
  
***************
*** 152,156 ****
                      return not rc
  
!                 def open(self, url, new=1):
                      # XXX Currently I know no way to prevent KFM from opening a new win.
                      self._remote("openURL %s" % url)
--- 152,156 ----
                      return not rc
  
!                 def open(self, url, new=1, autoraise=1):
                      # XXX Currently I know no way to prevent KFM from opening a new win.
                      self._remote("openURL %s" % url)
***************
*** 200,204 ****
                      return 1
  
!                 def open(self, url, new=0):
                      if new:
                          self._remote("LOADNEW " + url)
--- 200,204 ----
                      return 1
  
!                 def open(self, url, new=0, autoraise=1):
                      if new:
                          self._remote("LOADNEW " + url)
***************
*** 221,225 ****
  
      class WindowsDefault:
!         def open(self, url, new=0):
              os.startfile(url)
  
--- 221,225 ----
  
      class WindowsDefault:
!         def open(self, url, new=0, autoraise=1):
              os.startfile(url)
  
***************
*** 239,243 ****
  else:
      class InternetConfig:
!         def open(self, url, new=0):
              ic.launchurl(url)
  
--- 239,243 ----
  else:
      class InternetConfig:
!         def open(self, url, new=0, autoraise=1):
              ic.launchurl(url)