[rhinstaller/blivet/pulls/47 master] Dynamic mountpoint detection

mulkieran installerbot-noreply at redhat.com
Wed Mar 18 13:15:00 UTC 2015


> @@ -357,6 +358,18 @@ def insert_colons(a_string):
>      else:
>          return suffix
>  
> +def md5_file(filename):
> +
> +    f = open(filename, "rb")

We usually use the file as a context manager these days:

```
md5 = hashlib.md5()
with open(filename, "rb") as f:
    # do your stuff
```

-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/47#discussion_r26660966


More information about the anaconda-patches mailing list