webcheck commit: r415 - webcheck
[
Date Prev][Date Next]
[
Thread Prev][Thread Next]
webcheck commit: r415 - webcheck
- From: Commits of the webcheck project <webcheck-commits [at] lists.arthurdejong.org>
- To: webcheck-commits [at] lists.arthurdejong.org
- Reply-to: webcheck-users [at] lists.arthurdejong.org
- Subject: webcheck commit: r415 - webcheck
- Date: Thu, 23 Sep 2010 22:55:24 +0200 (CEST)
Author: arthur
Date: Thu Sep 23 22:55:21 2010
New Revision: 415
URL: http://arthurdejong.org/viewvc/webcheck?view=rev&revision=415
Log:
small simplification
Modified:
webcheck/myurllib.py
Modified: webcheck/myurllib.py
==============================================================================
--- webcheck/myurllib.py Thu Sep 23 20:19:45 2010 (r414)
+++ webcheck/myurllib.py Thu Sep 23 22:55:21 2010 (r415)
@@ -87,7 +87,7 @@
# remove any leading /../ parts
if scheme in ( 'http', 'https' ):
path = _leadingdotpattern.sub('', path)
- if ( scheme == 'http' or scheme == 'https' or scheme == 'ftp' ):
+ if scheme in ( 'http', 'https', 'ftp' ):
# http(s) urls should have a non-empty path
if path == '':
path = '/'
--
To unsubscribe send an email to
webcheck-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/webcheck-commits
- webcheck commit: r415 - webcheck,
Commits of the webcheck project