From: David Shea dshea@redhat.com
--- dracut/driver_updates.py | 2 +- scripts/merge-pr | 2 +- tests/dd_tests/dd_test.py | 1 - tests/gettext/click.py | 2 +- tests/glade/check_invisible_char.py | 2 +- tests/lib/mkdud.py | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/dracut/driver_updates.py b/dracut/driver_updates.py index f60480e..47c142a 100755 --- a/dracut/driver_updates.py +++ b/dracut/driver_updates.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Copyright (C) 2015 by Red Hat, Inc. All rights reserved. # diff --git a/scripts/merge-pr b/scripts/merge-pr index a13a780..514464b 100755 --- a/scripts/merge-pr +++ b/scripts/merge-pr @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # # merge-pr - Rebase, merge, and close a github pull request # diff --git a/tests/dd_tests/dd_test.py b/tests/dd_tests/dd_test.py index e857db8..de6b229 100644 --- a/tests/dd_tests/dd_test.py +++ b/tests/dd_tests/dd_test.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # unit tests for driver disk utilities (utils/dd)
# Ignore any interruptible calls diff --git a/tests/gettext/click.py b/tests/gettext/click.py index 6c3ce24..22851b7 100755 --- a/tests/gettext/click.py +++ b/tests/gettext/click.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # # Copyright (C) 2015 Red Hat, Inc. # diff --git a/tests/glade/check_invisible_char.py b/tests/glade/check_invisible_char.py index 72d8486..6d43ce1 100755 --- a/tests/glade/check_invisible_char.py +++ b/tests/glade/check_invisible_char.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # # Copyright (C) 2015 Red Hat, Inc. # diff --git a/tests/lib/mkdud.py b/tests/lib/mkdud.py index 39b376d..e5c5e83 100755 --- a/tests/lib/mkdud.py +++ b/tests/lib/mkdud.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # mkdud.py - test helper that makes driverdisk images # # Copyright (c) 2015 Red Hat, Inc.
@@ -0,0 +1,69 @@ +# +# shutup.py: context manager for ignoring overly verbose output +# +# Copyright (C) 2015 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published +# by the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# Author: David Shea dshea@redhat.com
+import os, contextlib
I think it would be better to import only `contextmanager` from `contextlib`.
Other than that small point I think it's ok.
Looks good to me too with the same suggestion as @jkonecny12
Added label: ACK.
Modified and pushed.
Closed.
anaconda-patches@lists.fedorahosted.org