lambdafu/smc.mw — pull request #9 by miki725 (2014-12-07 00:11:57+00:00)
Title: reading the file as binary

Python3 compatibility by reading file as binary and then decoding it in UTF8

```
>>> with open('test.txt', 'r') as fid:
... fid.read().decode('utf-8')
...
Traceback (most recent call last):
File "", line 2, in
AttributeError: 'str' object has no attribute 'decode'
```

```
>>> with open('test.txt', 'rb') as fid:
... fid.read().decode('utf-8')
...
''
```