mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Fixed #21266 -- Fixed E201,E202 pep8 warnings.
This commit is contained in:
committed by
Tim Graham
parent
42a67ec1cd
commit
83b9bfea44
@@ -19,15 +19,16 @@ class OGRIndexError(OGRException, KeyError):
|
||||
#### OGR error checking codes and routine ####
|
||||
|
||||
# OGR Error Codes
|
||||
OGRERR_DICT = { 1 : (OGRException, 'Not enough data.'),
|
||||
2 : (OGRException, 'Not enough memory.'),
|
||||
3 : (OGRException, 'Unsupported geometry type.'),
|
||||
4 : (OGRException, 'Unsupported operation.'),
|
||||
5 : (OGRException, 'Corrupt data.'),
|
||||
6 : (OGRException, 'OGR failure.'),
|
||||
7 : (SRSException, 'Unsupported SRS.'),
|
||||
8 : (OGRException, 'Invalid handle.'),
|
||||
}
|
||||
OGRERR_DICT = {
|
||||
1: (OGRException, 'Not enough data.'),
|
||||
2: (OGRException, 'Not enough memory.'),
|
||||
3: (OGRException, 'Unsupported geometry type.'),
|
||||
4: (OGRException, 'Unsupported operation.'),
|
||||
5: (OGRException, 'Corrupt data.'),
|
||||
6: (OGRException, 'OGR failure.'),
|
||||
7: (SRSException, 'Unsupported SRS.'),
|
||||
8: (OGRException, 'Invalid handle.'),
|
||||
}
|
||||
OGRERR_NONE = 0
|
||||
|
||||
def check_err(code):
|
||||
|
||||
Reference in New Issue
Block a user