Révision 7063330e
Fix python style issues reported by flake8
Additionally some python2-only "print" statements are now compatible
with python3.
| plugins/solr/solr4_ | ||
|---|---|---|
| 77 | 77 |
data = params['core'].rsplit('_', 1)
|
| 78 | 78 |
handler = data.pop() |
| 79 | 79 |
params['params'] = {
|
| 80 |
'handler': os.environ.get('qpshandler_%s' % handler, 'standard')
|
|
| 80 |
'handler': os.environ.get('qpshandler_%s' % handler, 'standard'),
|
|
| 81 | 81 |
} |
| 82 | 82 |
if not data: |
| 83 | 83 |
params['core'] = '' |
| ... | ... | |
| 416 | 416 |
handler=self.params['params']['handler'], |
| 417 | 417 |
core=self.params['core'], |
| 418 | 418 |
cores_qps_cdefs='%s,%s' % (','.join(map(lambda x: 'qps_%s' % x, cores)),
|
| 419 |
','.join(['+'] * (len(cores)-1))),
|
|
| 419 |
','.join(['+'] * (len(cores) - 1))),
|
|
| 420 | 420 |
gorder=','.join(cores) |
| 421 | 421 |
) |
| 422 | 422 |
|
| ... | ... | |
| 512 | 512 |
SOLR_URL = '/' + SOLR_URL |
| 513 | 513 |
mb = SolrMuninGraph(SOLR_HOST_PORT, SOLR_URL, params) |
| 514 | 514 |
if hasattr(mb, params['op']): |
| 515 |
print(getattr(mb, params['op'])(params['type'])) |
|
| 515 |
print(getattr(mb, params['op'])(params['type'])) |
|
Formats disponibles : Unified diff