Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Using unicode_literals future.
Browse files Browse the repository at this point in the history
  • Loading branch information
kissgyorgy committed May 18, 2014
1 parent 59ad624 commit 681bb5d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions handparser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

"""Poker hand history parser module."""

Expand All @@ -12,16 +13,16 @@
import pytz


locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') # need for abbreviated month names
locale.setlocale(locale.LC_ALL, b'en_US.UTF-8') # need for abbreviated month names


_NORMALIZE = {'STARS': {'pokerstars', 'stars', 'ps'},
'FTP': {'full tilt poker', 'full tilt', 'ftp'},
'PKR': {'pkr', 'pkr poker'},

'USD': {'usd', u'$'},
'EUR': {'eur', u'€'},
'GBP': {'gbp', u'£'},
'USD': {'usd', '$'},
'EUR': {'eur', '€'},
'GBP': {'gbp', '£'},

'TOUR': {'tournament', 'tour'},
'CASH': {'cash game', 'ring', 'cash'},
Expand Down

0 comments on commit 681bb5d

Please sign in to comment.