Changeset 812


Ignore:
Timestamp:
Feb 1, 2016, 6:21:38 AM (4 years ago)
Author:
cito
Message:

Fix two minor issues with pgdb

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pgdb.py

    r799 r812  
    9191
    9292from collections import Iterable
    93 try:
    94     from collections import OrderedDict
    95 except ImportError:  # Python 2.6 or 3.0
    96     try:
    97         from ordereddict import OrderedDict
    98     except Exception:
    99         def OrderedDict(*args):
    100             raise NotSupportedError('OrderedDict is not supported')
    10193
    10294
     
    544536        else:
    545537            if not size:
    546                 size = type_info.size
     538                size = type_code.size
    547539            if size == -1:
    548540                size = mod
Note: See TracChangeset for help on using the changeset viewer.