Cleanup some pylint
This commit is contained in:
		
							parent
							
								
									dcb946f3df
								
							
						
					
					
						commit
						b69ef8ea00
					
				
					 4 changed files with 10 additions and 16 deletions
				
			
		|  | @ -1,8 +1,6 @@ | ||||||
| import flask | import flask | ||||||
| import json | import json | ||||||
| 
 | 
 | ||||||
| from . import helpers |  | ||||||
| 
 |  | ||||||
| def make_json_response(j, *args, **kwargs): | def make_json_response(j, *args, **kwargs): | ||||||
|     dumped = json.dumps(j) |     dumped = json.dumps(j) | ||||||
|     response = flask.Response(dumped, *args, **kwargs) |     response = flask.Response(dumped, *args, **kwargs) | ||||||
|  |  | ||||||
|  | @ -1,5 +1,4 @@ | ||||||
| import bcrypt | import bcrypt | ||||||
| import collections |  | ||||||
| import copy | import copy | ||||||
| import json | import json | ||||||
| import logging | import logging | ||||||
|  | @ -19,7 +18,6 @@ from . import searchhelpers | ||||||
| from voussoirkit import cacheclass | from voussoirkit import cacheclass | ||||||
| from voussoirkit import expressionmatch | from voussoirkit import expressionmatch | ||||||
| from voussoirkit import pathclass | from voussoirkit import pathclass | ||||||
| from voussoirkit import safeprint |  | ||||||
| from voussoirkit import spinal | from voussoirkit import spinal | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -827,15 +825,15 @@ class PDBPhotoMixin: | ||||||
|                 continue |                 continue | ||||||
| 
 | 
 | ||||||
|             if any( |             if any( | ||||||
|                 not fetch[constants.SQL_PHOTO[key]] or |                     not fetch[constants.SQL_PHOTO[key]] or fetch[constants.SQL_PHOTO[key]] > value | ||||||
|                 fetch[constants.SQL_PHOTO[key]] > value for (key, value) in maximums.items() |                     for (key, value) in maximums.items() | ||||||
|                 ): |                 ): | ||||||
|                 #print('Failed maximums') |                 #print('Failed maximums') | ||||||
|                 continue |                 continue | ||||||
| 
 | 
 | ||||||
|             if any( |             if any( | ||||||
|                 not fetch[constants.SQL_PHOTO[key]] or |                     not fetch[constants.SQL_PHOTO[key]] or fetch[constants.SQL_PHOTO[key]] < value | ||||||
|                 fetch[constants.SQL_PHOTO[key]] < value for (key, value) in minimums.items() |                     for (key, value) in minimums.items() | ||||||
|                 ): |                 ): | ||||||
|                 #print('Failed minimums') |                 #print('Failed minimums') | ||||||
|                 continue |                 continue | ||||||
|  |  | ||||||
|  | @ -1,5 +1,3 @@ | ||||||
| import shlex |  | ||||||
| 
 |  | ||||||
| from . import constants | from . import constants | ||||||
| from . import exceptions | from . import exceptions | ||||||
| from . import helpers | from . import helpers | ||||||
|  | @ -186,7 +184,7 @@ def normalize_limit(limit, warning_bag=None): | ||||||
|         limit = int(limit) |         limit = int(limit) | ||||||
| 
 | 
 | ||||||
|     if not isinstance(limit, int): |     if not isinstance(limit, int): | ||||||
|         message = 'Invalid limit "%s%"' % limit |         message = 'Invalid limit "%s"' % limit | ||||||
|         if warning_bag: |         if warning_bag: | ||||||
|             warning_bag.add(message) |             warning_bag.add(message) | ||||||
|             limit = None |             limit = None | ||||||
|  | @ -208,7 +206,7 @@ def normalize_offset(offset, warning_bag=None): | ||||||
|         offset = int(offset) |         offset = int(offset) | ||||||
| 
 | 
 | ||||||
|     if not isinstance(offset, int): |     if not isinstance(offset, int): | ||||||
|         message = 'Invalid offset "%s%"' % offset |         message = 'Invalid offset "%s"' % offset | ||||||
|         if warning_bag: |         if warning_bag: | ||||||
|             warning_bag.add(message) |             warning_bag.add(message) | ||||||
|             offset = None |             offset = None | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue