Search
j0ke.net Open Build Service
>
Projects
>
hardware
:
dell
>
python-sqlobject
> python-sqlobject-0.10.5-deprecated_warning.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python-sqlobject-0.10.5-deprecated_warning.patch of Package python-sqlobject
Index: sqlobject/converters.py =================================================================== --- sqlobject/converters.py.orig +++ sqlobject/converters.py @@ -1,3 +1,4 @@ +#!/usr/bin/python -W ignore::DeprecationWarning from array import array try: @@ -154,20 +155,13 @@ def SequenceConverter(value, db): registerConverter(tuple, SequenceConverter) registerConverter(list, SequenceConverter) registerConverter(dict, SequenceConverter) + try: set, frozenset -except NameError: - pass -else: registerConverter(set, SequenceConverter) registerConverter(frozenset, SequenceConverter) -try: - from sets import Set, ImmutableSet -except ImportError: +except NameError: pass -else: - registerConverter(Set, SequenceConverter) - registerConverter(ImmutableSet, SequenceConverter) if hasattr(time, 'struct_time'): def StructTimeConverter(value, db):