lists.arthurdejong.org
RSS feed

webcheck commit: r415 - webcheck

[Date Prev][Date Next] [Thread Prev][Thread Next]

webcheck commit: r415 - webcheck



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