diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-12-01 22:03:38 -0800 |
|---|---|---|
| committer | Jon Dufresne <jon.dufresne@gmail.com> | 2017-12-01 22:03:38 -0800 |
| commit | 94bb238b7035e3e46ebf504d4a9f2c9f330c0721 (patch) | |
| tree | 7d353e2420cce744f7e8bb9be7abcc0882a2ec4e /examples | |
| parent | a51160317c680662c52e4a1a6b4d11beae37f205 (diff) | |
| download | psycopg2-94bb238b7035e3e46ebf504d4a9f2c9f330c0721.tar.gz | |
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
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/dialtone.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/dialtone.py b/examples/dialtone.py index a89021c..9b30eda 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 |
