Remove sorted() workaround; available on all supported Pythons

Introduced in Python 2.4 and the oldest supported Python is 2.7.

https://docs.python.org/2/library/functions.html#sorted
This commit is contained in:
Jon Dufresne 2017-12-01 22:03:38 -08:00
parent a51160317c
commit 94bb238b70

View File

@ -17,13 +17,6 @@ from datetime import datetime
import psycopg2
from psycopg2.extensions import adapt, register_adapter
try:
sorted()
except:
def sorted(seq):
seq.sort()
return seq
# Here is the adapter for every object that we may ever need to
# insert in the database. It receives the original object and does
# its job on that instance