[rhinstaller/anaconda/pulls/46 master] Use proxy when configured for the base repo (#1196953)

vpodzime installerbot-noreply at redhat.com
Mon Mar 23 08:08:04 UTC 2015


> @@ -702,9 +708,13 @@ def updateBaseRepo(self, fallback=True, checkmount=True):
>                            method.method, e)
>  
>              try:
> +                if hasattr(method, "proxy"):
> +                    proxy = method.proxy
> +                else:
> +                    proxy = None

You can use the ``getattr()`` function with ``None`` used as the default value (second argument) here.

-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/46#discussion_r26918681


More information about the anaconda-patches mailing list