Skip to content

Commit

Permalink
Remove decimal_23 (opening salvo for removing python 2.3 support)
Browse files Browse the repository at this point in the history
  • Loading branch information
rupole committed Apr 8, 2013
1 parent 980d578 commit b187cca
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3,084 deletions.
5 changes: 1 addition & 4 deletions adodbapi/adodbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@
#import traceback
import datetime

try:
import decimal
except ImportError: #perhaps running Cpython 2.3
import win32com.decimal_23 as decimal
import decimal
# or # from django.utils import _decimal as decimal


Expand Down
7 changes: 2 additions & 5 deletions adodbapi/test/adodbapitest.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@
import ado_consts
except ImportError:
from adodbapi import ado_consts

try:
import decimal
except ImportError:
import win32com.decimal_23 as decimal

import decimal

def str2bytes(sval):
if sys.version_info < (3,0) and isinstance(sval, str):
Expand Down
Loading

0 comments on commit b187cca

Please sign in to comment.