comparison rhodecode/lib/utils.py @ 3888:7aa0ff5b4e09 beta

simplified boolean expressions
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 22 May 2013 03:14:03 +0200
parents a5746b83123f
children 3208aaefc9ca
comparison
equal deleted inserted replaced
3887:4930abd96a7e 3888:7aa0ff5b4e09
553 # Additional mappings that are not present in the pygments lexers 553 # Additional mappings that are not present in the pygments lexers
554 conf.LANGUAGES_EXTENSIONS_MAP.update(getattr(EXT, 'EXTRA_MAPPINGS', {})) 554 conf.LANGUAGES_EXTENSIONS_MAP.update(getattr(EXT, 'EXTRA_MAPPINGS', {}))
555 555
556 #OVERRIDE OUR EXTENSIONS FROM RC-EXTENSIONS (if present) 556 #OVERRIDE OUR EXTENSIONS FROM RC-EXTENSIONS (if present)
557 557
558 if getattr(EXT, 'INDEX_EXTENSIONS', []) != []: 558 if getattr(EXT, 'INDEX_EXTENSIONS', []):
559 log.debug('settings custom INDEX_EXTENSIONS') 559 log.debug('settings custom INDEX_EXTENSIONS')
560 conf.INDEX_EXTENSIONS = getattr(EXT, 'INDEX_EXTENSIONS', []) 560 conf.INDEX_EXTENSIONS = getattr(EXT, 'INDEX_EXTENSIONS', [])
561 561
562 #ADDITIONAL MAPPINGS 562 #ADDITIONAL MAPPINGS
563 log.debug('adding extra into INDEX_EXTENSIONS') 563 log.debug('adding extra into INDEX_EXTENSIONS')