leif pushed a commit to branch master.

http://git.enlightenment.org/admin/release-management.git/commit/?id=4094b6e2de3f439e0123483a96b1fbcc9a715688

commit 4094b6e2de3f439e0123483a96b1fbcc9a715688
Author: Leif Middelschulte <leif.middelschu...@gmail.com>
Date:   Tue Apr 14 16:29:58 2015 +0200

    Remove consequenceless None check
---
 distributions_versions_fetch_script.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/distributions_versions_fetch_script.py 
b/distributions_versions_fetch_script.py
index 7a84f70..104e0cd 100755
--- a/distributions_versions_fetch_script.py
+++ b/distributions_versions_fetch_script.py
@@ -22,9 +22,7 @@ def scrap_page(url, xpath, pkg_name_prefix):
        tree = html.fromstring(html_page.text)
        html_text = tree.xpath(xpath)[0] # use first node
        pkgversion = grep_version_string(html_text, pkg_name_prefix)
-       if pkgversion != None:
-               return pkgversion
-       return None
+       return pkgversion
 
 def main():
        print "**Last Updated: " + str(datetime.date.today()) + "**"

-- 


Reply via email to