Title: [989] trunk: Minor whitespace fixes and IDE hints
- Revision
- 989
- Author
- cito
- Date
- 2019-04-24 11:49:20 -0400 (Wed, 24 Apr 2019)
Log Message
Minor whitespace fixes and IDE hints
Modified Paths
Diff
Modified: trunk/pg.py (988 => 989)
--- trunk/pg.py 2019-04-24 15:42:29 UTC (rev 988)
+++ trunk/pg.py 2019-04-24 15:49:20 UTC (rev 989)
@@ -43,12 +43,12 @@
from json import loads as jsondecode, dumps as jsonencode
from uuid import UUID
-try:
+try: # noinspection PyUnresolvedReferences
long
except NameError: # Python >= 3.0
long = int
-try:
+try: # noinspection PyUnresolvedReferences
basestring
except NameError: # Python >= 3.0
basestring = (str, bytes)
Modified: trunk/pgdb.py (988 => 989)
--- trunk/pgdb.py 2019-04-24 15:42:29 UTC (rev 988)
+++ trunk/pgdb.py 2019-04-24 15:49:20 UTC (rev 989)
@@ -87,17 +87,17 @@
from re import compile as regex
from json import loads as jsondecode, dumps as jsonencode
-try:
+try: # noinspection PyUnresolvedReferences
long
except NameError: # Python >= 3.0
long = int
-try:
+try: # noinspection PyUnresolvedReferences
unicode
except NameError: # Python >= 3.0
unicode = str
-try:
+try: # noinspection PyUnresolvedReferences
basestring
except NameError: # Python >= 3.0
basestring = (str, bytes)
@@ -1219,7 +1219,7 @@
if not table or not isinstance(table, basestring):
raise TypeError("Need a table to copy to")
if table.lower().startswith('select'):
- raise ValueError("Must specify a table, not a query")
+ raise ValueError("Must specify a table, not a query")
else:
table = '"%s"' % (table,)
operation = ['copy %s' % (table,)]
@@ -1435,7 +1435,6 @@
return _row_factory(tuple(names))
-
CursorDescription = namedtuple('CursorDescription',
['name', 'type_code', 'display_size', 'internal_size',
'precision', 'scale', 'null_ok'])
_______________________________________________
PyGreSQL mailing list
PyGreSQL@Vex.Net
https://mail.vex.net/mailman/listinfo/pygresql