# -*- coding: utf-8 -*-
was needed in Python 2 to set source encoding to UTF-8.Python 2 has default ASCII encoding,Python 3.x has default UTF-8 encoding.
So using that line only make sense if using Python 2,
or want to deviate from the default UTF-8 in Python 3 eg
# -*- coding: latin-1 -*-
.