From 94bb238b7035e3e46ebf504d4a9f2c9f330c0721 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Fri, 1 Dec 2017 22:03:38 -0800 Subject: [PATCH] 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 --- examples/dialtone.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/dialtone.py b/examples/dialtone.py index a89021ce..9b30eda4 100644 --- a/examples/dialtone.py +++ b/examples/dialtone.py @@ -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