Skip to content

Commit

Permalink
enabled utf-8 coding
Browse files Browse the repository at this point in the history
  • Loading branch information
erinxocon committed Sep 16, 2016
1 parent 90b5072 commit 9188c36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_parse.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#coding=utf-8

import pytest
import tpfd
import logging
Expand Down Expand Up @@ -53,6 +55,9 @@ def test_string_parse3():
def test_string_parse4():
assert p.parse_string('The knights who say Ni!') == ('knights', 'ni')

def test_utf_parse1():
assert p.parse_string('The 🇬🇧 who say ⚡️!') == ('🇬🇧', '⚡️')


def test_iter_parse1():
l = ['List test 1', 'List test 2', 'List antitest 1']
Expand Down
2 changes: 2 additions & 0 deletions tpfd/parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#coding=utf-8

"""
parser.py
This contains the main Parser class that can be instantiated to create rules.
Expand Down
2 changes: 2 additions & 0 deletions tpfd/rules.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import logging
#coding=utf-8

from collections import defaultdict
from parse import parse

Expand Down

0 comments on commit 9188c36

Please sign in to comment.