[csw-devel] SF.net SVN: gar:[13952] csw/mgar/gar/v2/lib/python/package.py

Maciej Bliziński maciej at opencsw.org
Sun Mar 27 22:09:06 CEST 2011


2011/3/27  <bdwalton at users.sourceforge.net>:
>     if not os.path.exists(obsoleted_by_path):
> -      return { "syntax_ok": True, "obsoleted_by": obsoleted_by }
> +      return { "syntax_ok": True,
> +               "obsoleted_by": obsoleted_by,
> +               "has_obsolete_info": False }

The return statement could be de-duplicated in the following manner:

initialize variables
if file exists:
  open file, populate variables
return variables


More information about the devel mailing list