Author: cito
Date: Mon Feb  1 06:21:38 2016
New Revision: 812

Log:
Fix two minor issues with pgdb

Removed a now unnecessary import and fixed one forgotten name change.

Modified:
   trunk/pgdb.py

Modified: trunk/pgdb.py
==============================================================================
--- trunk/pgdb.py       Mon Feb  1 04:47:39 2016        (r811)
+++ trunk/pgdb.py       Mon Feb  1 06:21:38 2016        (r812)
@@ -90,14 +90,6 @@
     basestring = (str, bytes)
 
 from collections import Iterable
-try:
-    from collections import OrderedDict
-except ImportError:  # Python 2.6 or 3.0
-    try:
-        from ordereddict import OrderedDict
-    except Exception:
-        def OrderedDict(*args):
-            raise NotSupportedError('OrderedDict is not supported')
 
 
 ### Module Constants
@@ -543,7 +535,7 @@
             size = precision
         else:
             if not size:
-                size = type_info.size
+                size = type_code.size
             if size == -1:
                 size = mod
             precision = scale = None
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to