# Utility functions
# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
-# $Id: utils.py,v 1.62 2004-01-21 03:48:58 troup Exp $
+# $Id: utils.py,v 1.64 2004-03-11 00:20:51 troup Exp $
################################################################################
if section.find('/') != -1:
component = section.split('/')[0];
- if component.lower() == "non-us" and section.count('/') > 0:
+ if component.lower() == "non-us" and section.find('/') != -1:
s = component + '/' + section.split('/')[1];
if Cnf.has_key("Component::%s" % s): # Avoid e.g. non-US/libs
component = s;
rfc822 = maintainer;
name = "";
email = "";
- if m != None and len(m.groups()) == 2:
+ if m and len(m.groups()) == 2:
name = m.group(1);
email = m.group(2);
if name.find(',') != -1 or name.find('.') != -1: