Rename decimal.py to decimal_wrapper.py so we don't break when
cdecimal is not installed.
This commit is contained in:
parent
25799d01f2
commit
fc46b70c41
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#TODO: gettextify if file is used again
|
#TODO: gettextify if file is used again
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
|
|
||||||
from sqlalchemy import types
|
from sqlalchemy import types
|
||||||
from sqlalchemy.orm.exc import NoResultFound
|
from sqlalchemy.orm.exc import NoResultFound
|
||||||
|
|
|
@ -23,7 +23,7 @@ This package contains all classes to be mapped and mappers themselves
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
from sqlalchemy.orm import mapper, relation, reconstructor
|
from sqlalchemy.orm import mapper, relation, reconstructor
|
||||||
from sqlalchemy.sql import select
|
from sqlalchemy.sql import select
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
|
@ -53,7 +53,7 @@ _ = L10n.get_translation()
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
from HandHistoryConverter import *
|
from HandHistoryConverter import *
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
|
|
||||||
|
|
||||||
class Carbon(HandHistoryConverter):
|
class Carbon(HandHistoryConverter):
|
||||||
|
|
|
@ -38,7 +38,7 @@ import sys
|
||||||
import traceback
|
import traceback
|
||||||
from datetime import datetime, date, time, timedelta
|
from datetime import datetime, date, time, timedelta
|
||||||
from time import time, strftime, sleep
|
from time import time, strftime, sleep
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import string
|
import string
|
||||||
import re
|
import re
|
||||||
import Queue
|
import Queue
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#fpdb modules
|
#fpdb modules
|
||||||
import Card
|
import Card
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
# logging has been set up in fpdb.py or HUD_main.py, use their settings:
|
# logging has been set up in fpdb.py or HUD_main.py, use their settings:
|
||||||
|
|
|
@ -25,7 +25,7 @@ _ = L10n.get_translation()
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
from HandHistoryConverter import *
|
from HandHistoryConverter import *
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
|
|
||||||
|
|
||||||
class Everest(HandHistoryConverter):
|
class Everest(HandHistoryConverter):
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
import L10n
|
import L10n
|
||||||
_ = L10n.get_translation()
|
_ = L10n.get_translation()
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from Exceptions import FpdbParseError
|
from Exceptions import FpdbParseError
|
||||||
|
|
|
@ -25,7 +25,7 @@ import sys
|
||||||
import traceback
|
import traceback
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import operator
|
import operator
|
||||||
import time,datetime
|
import time,datetime
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
|
|
@ -26,7 +26,7 @@ import os
|
||||||
import os.path
|
import os.path
|
||||||
import xml.dom.minidom
|
import xml.dom.minidom
|
||||||
import codecs
|
import codecs
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import operator
|
import operator
|
||||||
from xml.dom.minidom import Node
|
from xml.dom.minidom import Node
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ log = logging.getLogger("parser")
|
||||||
|
|
||||||
import Configuration
|
import Configuration
|
||||||
from HandHistoryConverter import *
|
from HandHistoryConverter import *
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
|
|
||||||
# OnGame HH Format
|
# OnGame HH Format
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
import L10n
|
import L10n
|
||||||
_ = L10n.get_translation()
|
_ = L10n.get_translation()
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from Exceptions import FpdbParseError
|
from Exceptions import FpdbParseError
|
||||||
|
|
|
@ -25,7 +25,7 @@ _ = L10n.get_translation()
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from HandHistoryConverter import *
|
from HandHistoryConverter import *
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
|
|
||||||
# PokerStars HH Format
|
# PokerStars HH Format
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
import L10n
|
import L10n
|
||||||
_ = L10n.get_translation()
|
_ = L10n.get_translation()
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from Exceptions import FpdbParseError
|
from Exceptions import FpdbParseError
|
||||||
|
|
|
@ -28,7 +28,7 @@ import traceback
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import operator
|
import operator
|
||||||
import time,datetime
|
import time,datetime
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
import L10n
|
import L10n
|
||||||
_ = L10n.get_translation()
|
_ = L10n.get_translation()
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import datetime
|
import datetime
|
||||||
from BeautifulSoup import BeautifulSoup
|
from BeautifulSoup import BeautifulSoup
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ import logging
|
||||||
|
|
||||||
import Configuration
|
import Configuration
|
||||||
from HandHistoryConverter import *
|
from HandHistoryConverter import *
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
import time
|
import time
|
||||||
|
|
||||||
# Winamax HH Format
|
# Winamax HH Format
|
||||||
|
|
|
@ -46,7 +46,7 @@ _ = L10n.get_translation()
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
from HandHistoryConverter import *
|
from HandHistoryConverter import *
|
||||||
from decimal import Decimal
|
from decimal_wrapper import Decimal
|
||||||
|
|
||||||
|
|
||||||
class iPoker(HandHistoryConverter):
|
class iPoker(HandHistoryConverter):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user