Commit 7b31ab1 1 parent 6f01fc3 commit 7b31ab1 Copy full SHA for 7b31ab1
File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,12 @@ def get_name(self, pk):
56
56
import logging
57
57
import random
58
58
import warnings
59
+ import decimal
59
60
from enum import IntEnum
60
61
from abc import ABC
62
+ from json import JSONEncoder
61
63
from datetime import datetime
62
64
from psycopg2 import sql
63
- from psycopg2 .extras import json
64
65
from psycopg2 .pool import ThreadedConnectionPool
65
66
from psycopg2 .extensions import (
66
67
STATUS_IN_TRANSACTION ,
@@ -463,7 +464,7 @@ def all(self):
463
464
return self .select ("SELECT {0} FROM " + self .table + ";" ,
464
465
self .columns )
465
466
466
- class RawlJSONEncoder (json . JSONEncoder ):
467
+ class RawlJSONEncoder (JSONEncoder ):
467
468
"""
468
469
A JSON encoder that can be used with json.dumps
469
470
@@ -476,4 +477,4 @@ def default(self, o):
476
477
return o .isoformat ()
477
478
elif type (o ) == RawlResult :
478
479
return o .to_dict ()
479
- return json . JSONEncoder . default ( self , o )
480
+ return super ( RawlJSONEncoder , self ). default ( o )
Original file line number Diff line number Diff line change 5
5
6
6
setup (
7
7
name = 'rawl' ,
8
- version = '0.2.4b1 ' ,
8
+ version = '0.2.5b1 ' ,
9
9
description = 'An ugly raw SQL postgresql db layer' ,
10
10
url = 'https://github.com/mikeshultz/rawl' ,
11
11
author = 'Mike Shultz' ,
You can’t perform that action at this time.
0 commit comments