Jon Dufresne
94bb238b70
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
2017-12-01 22:03:38 -08:00
Jon Dufresne
e335d6d223
Trim trailing whitespace from all files throughout project
...
Many editors automatically trim whitespace on save. By trimming all
files in one go, makes future diffs cleaner without extraneous
whitespace changes.
2017-12-01 21:42:14 -08:00
Jon Dufresne
d0c7126aa8
Remove test decorators for json module
...
The json module is available in all Python versions supported by
psycopg2. No need to check for its presence when executing tests.
Should have been included with d58844e548
but was missed.
2017-12-01 21:06:10 -08:00
Jon Dufresne
f5703dc3e5
Use builtin function next() throughout project
...
Available since Python 2.6. Use of .next() is deprecated and not
supported in Python 3. Forward compatible with modern Python.
https://docs.python.org/2/library/functions.html#next
2017-12-01 19:57:37 -08:00
Jon Dufresne
56ec575351
Drop leading 0's from numeric literals
...
Not compatible with Python3. Makes the code more forward compatible with
modern Pythons.
In Python2, it was an alternative syntax for octal.
$ python3
>>> 01
File "<stdin>", line 1
01
^
SyntaxError: invalid token
2017-12-01 19:00:53 -08:00
Jon Dufresne
fcc083dc12
Always import the system unittest
...
There is no need to import testutils.unittest instead of simply
unittest. They are simple aliases. Use system unittest to be more
regular, consistent as well as idiomatic with the wider Python
community.
2017-12-01 18:35:30 -08:00
Jon Dufresne
6a1546adde
Add *.egg-info directories to .gitignore
2017-12-01 18:21:50 -08:00
Daniele Varrazzo
a51160317c
Fixed NEWS file entries
...
- 2.6.3 has not been released (yet). Fixes for bug #420 , bug #462 were
relased in 2.7.
- Added missing report for bug #489 fixed in 2.7.
2017-12-01 16:29:29 +00:00
Daniele Varrazzo
f4aa40da09
Merge branch 'bug-633'
2017-11-29 15:42:29 +00:00
Daniele Varrazzo
65ed5478d1
Collect rowcount in executemany even when discarding results
...
Closes #633 .
2017-11-29 15:42:04 +00:00
Daniele Varrazzo
727b952a32
Build and test packages with libpq 10.1 and OpenSSL 1.0.2m
2017-11-28 17:19:55 +00:00
Daniele Varrazzo
0d5b0f0287
Merge branch 'fix-libpq-version'
2017-11-28 17:19:30 +00:00
Daniele Varrazzo
87da2f898d
Fixed __libpq_version__ for Postgres >= 10.1
...
The version should be considered as 10.0.1; the number was generated as
10.1.0 instead.
Version number bumped to test building new wheels packages.
Fix #632 .
2017-11-28 17:19:01 +00:00
Daniele Varrazzo
3e52b5445b
Merge branch 'rm-eol'
...
Fix #626 , close #628 .
2017-11-28 16:27:41 +00:00
Daniele Varrazzo
f939f39580
Use dict comprehensions
2017-11-28 16:11:06 +00:00
Daniele Varrazzo
c3ee9cac41
Dropped unused test functions
2017-11-28 16:11:06 +00:00
Daniele Varrazzo
a0229cff82
Documentation tweaked to omit Python 2.6 distinctions
2017-11-28 16:11:06 +00:00
Hugo
60b1517c55
Add news and update version check
2017-11-28 16:11:02 +00:00
Hugo
c2d082e896
Drop support for EOL Python 3.0-3.3
2017-11-28 16:06:55 +00:00
Hugo
ea76504cd1
Remove trailing semicolons
2017-11-28 16:06:55 +00:00
Hugo
283de27098
Remove redundant parentheses
2017-11-28 16:06:52 +00:00
Hugo
08b479bc10
__slots__ should be a tuple
2017-11-28 16:05:59 +00:00
Hugo
7282ef0d14
Rewrite list creation as list literal
2017-11-28 16:03:23 +00:00
Hugo
955526b200
Replace comparison with None with equality operator
2017-11-28 16:03:23 +00:00
Hugo
b69457ccdf
Update to Exception as e, print()
2017-11-28 16:03:23 +00:00
Hugo
2f3c233f38
Simplify Boolean
2017-11-28 16:03:23 +00:00
Hugo
53c1c5dcc1
Remove redundant hasattr checks
2017-11-28 16:03:23 +00:00
Hugo
ffcc65d4f0
Drop support for EOL Python 2.6
2017-11-28 16:02:12 +00:00
Daniele Varrazzo
e7529e4823
Merge remote-tracking branch 'jdufresne/json-docs'
2017-11-28 15:22:09 +00:00
Daniele Varrazzo
f77057dd43
Merge remote-tracking branch 'jdufresne/with-statement'
2017-11-28 15:20:24 +00:00
Jon Dufresne
c1d3948be9
Update documentation to reflect JSON import behavior
...
The docs don't need to describe what will happen on Python versions
before 2.6 as they are unsupported by psycopg2.
Should have been included in commit
d58844e548
, but was missed.
2017-11-28 06:38:44 -08:00
Jon Dufresne
4c95668c72
Remove "from __future__ import with_statement"
...
All versions of Python supported by psycopg2 have builtin support for
the with statement. The import is unnecessary noise.
2017-11-28 06:03:46 -08:00
Daniele Varrazzo
914ccbacb5
Merge branch 'python3_mintimeloggingconnection'
2017-11-28 03:23:42 +00:00
Daniele Varrazzo
b4f066bd43
Mention MinTimeLoggingCursor fix in NEWS file
2017-11-28 03:22:53 +00:00
Daniele Varrazzo
1959d2403f
Merge branch 'solaris-support'
2017-11-28 03:16:04 +00:00
Daniele Varrazzo
a1831ef498
Mention solaris support in NEWS
...
Close #532 .
2017-11-28 03:13:25 +00:00
Daniele Varrazzo
fc8574fdd8
Merge remote-tracking branch 'jdufresne/decimal'
2017-11-28 03:05:06 +00:00
Daniele Varrazzo
06d4788811
Merge remote-tracking branch 'jdufresne/json'
2017-11-28 03:04:59 +00:00
Daniele Varrazzo
e0ce35ef72
Merge remote-tracking branch 'jdufresne/skip-before'
2017-11-28 03:04:44 +00:00
Daniele Varrazzo
db0c081d03
Merge remote-tracking branch 'jdufresne/uuid'
2017-11-28 03:04:26 +00:00
Daniele Varrazzo
a39d794308
Merge remote-tracking branch 'jdufresne/iobase'
2017-11-28 03:04:03 +00:00
Daniele Varrazzo
7855f28785
Merge remote-tracking branch 'jdufresne/namedtuple'
2017-11-28 03:02:56 +00:00
Daniele Varrazzo
dda55dbf36
Moving to next major version on master
...
Opened maintenance branch `maint_2_7`
2017-11-28 03:02:03 +00:00
Daniele Varrazzo
afb42e7625
Merge remote-tracking branch 'jdufresne/py2'
2017-11-28 02:59:17 +00:00
Daniele Varrazzo
b4e658d29b
Merge remote-tracking branch 'jdufresne/license'
2017-11-28 02:39:54 +00:00
Jon Dufresne
296abf735e
Add some missing trove classifiers for general Python support
2017-11-27 07:30:50 -08:00
Jon Dufresne
048f1bb95a
Remove workaround for decimal module
...
The decimal module is available on all Python versions supported by
psycopg2. It has been available since Python 2.4. No need to catch an
ImportError.
https://docs.python.org/2/library/decimal.html
2017-11-26 17:55:24 -08:00
Jon Dufresne
d58844e548
Clean up JSON workarounds for unsupported Python versions
...
All Python versions supported by psycopg2 have the json module. It was
added in Python 2.6. Can remove checks for availability, slightly
simplifying the code.
2017-11-26 17:11:27 -08:00
Jon Dufresne
dfc9932f27
Remove use of skip_before_python for unsupported Python versions
...
psycopg2 does not support Python < 2.6, remove all test guards for these
versions.
2017-11-26 16:43:18 -08:00
Jon Dufresne
582ec189cc
Remove uuid workaround for older Pythons
...
uuid is available on all Python versions supported by psycopg2.
2017-11-26 14:46:53 -08:00