# coding: utf-8
from __future__ import unicode_literals

import os


def get_path(filename):
    return os.path.join(os.path.dirname(__file__), filename)


def maybe_strip_comment(line):
    if '#' in line:
        line = line[:line.index('#')]
        line = line.rstrip()
    return line


def load_lines(filename):
    path = get_path(filename)
    with open(path) as file:
        for line in file:
            line = line.rstrip('\n')
            line = maybe_strip_comment(line)
            yield line

@@ -48,16 +48,69 @@
 literals
+%0Afrom yargy.compat import RUNNING_ON_PYTHON_2_VERSION
 %0A%0Aimport
@@ -445,24 +445,112 @@
 ne in file:%0A
+            if RUNNING_ON_PYTHON_2_VERSION:%0A                line = line.decode('utf-8')%0A
             

Fix encoding problems with py2