[ovs-dev] [PATCH 5/9] tests: Convert soexpand build tool from Perl to Python.
Ben Pfaff
blp at ovn.org
Mon Nov 20 18:00:18 UTC 2017
On Thu, Nov 16, 2017 at 09:40:06AM -0500, Aaron Conole wrote:
> Ben Pfaff <blp at ovn.org> writes:
>
> > Perl is unfashionable and Python is more widely available and understood,
> > so this commit converts one of the OVS uses of Perl into Python.
> >
> > Signed-off-by: Ben Pfaff <blp at ovn.org>
> > +def find_file(include_dirs, name):
> > + for dir in include_dirs:
> > + file = "%s/%s" % (dir, name)
> > + try:
> > + os.stat(file)
> > + return file
> > + except IOError as e:
>
> This should just be 'except IOError:'
Thanks, fixed.
More information about the dev
mailing list