A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2002-October/030159.html below:

[Python-checkins] python/dist/src/Lib webbrowser.py,1.33,1.34

[Python-checkins] python/dist/src/Lib webbrowser.py,1.33,1.34nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Fri, 11 Oct 2002 15:04:25 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv4884/Lib

Modified Files:
	webbrowser.py 
Log Message:
SF # 539360, webbrowser.py and konqueror, by Andy McKay

Fix Konqueror so it can start when calling open().
The assert needed to be on the raw URL, not openURL 'url...'

Will backport.


Index: webbrowser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/webbrowser.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** webbrowser.py	10 Oct 2002 22:49:29 -0000	1.33
--- webbrowser.py	11 Oct 2002 22:04:22 -0000	1.34
***************
*** 177,182 ****
  
      def _remote(self, action):
!         assert "'" not in action
!         cmd = "kfmclient '%s' >/dev/null 2>&1" % action
          rc = os.system(cmd)
          if rc:
--- 177,181 ----
  
      def _remote(self, action):
!         cmd = "kfmclient %s >/dev/null 2>&1" % action
          rc = os.system(cmd)
          if rc:
***************
*** 193,196 ****
--- 192,196 ----
          # XXX Currently I know no way to prevent KFM from
          # opening a new win.
+         assert "'" not in url
          self._remote("openURL '%s'" % url)
  





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4