Django

Code

Changeset 5690

Show
Ignore:
Timestamp:
07/13/07 15:36:01 (1 year ago)
Author:
gwilson
Message:

Refs #2591 -- Removed int conversion and try/except since the value in the single-item list is already an int. I overlooked this in my original patch, which was applied in [5679].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/backends/postgresql_psycopg2/introspection.py

    r5679 r5690  
    3131    relations = {} 
    3232    for row in cursor.fetchall(): 
    33         try: 
    34             # row[0] and row[1] are single-item lists, so grab the single item. 
    35             relations[int(row[0][0]) - 1] = (int(row[1][0]) - 1, row[2]) 
    36         except ValueError: 
    37             continue 
     33        # row[0] and row[1] are single-item lists, so grab the single item. 
     34        relations[row[0][0] - 1] = (row[1][0] - 1, row[2]) 
    3835    return relations 
    3936