<s> from __future__ import ( unicode_literals , division , absolute_import , print_function ) <EOL> import sys <EOL> import platform <EOL> import os <EOL> from powerline import Powerline <EOL> from powerline . lib . overrides import parse_override_var <EOL> from powerline . lib . dict import mergeargs , mergedicts <EOL> class PDBPowerline ( Powerline ) : <EOL> '''<STR_LIT>''' <EOL> def init ( self , ** kwargs ) : <EOL> return super ( PDBPowerline , self ) . init ( <EOL> ext = '<STR_LIT>' , <EOL> renderer_module = '<STR_LIT>' , <EOL> ** kwargs <EOL> ) <EOL> def do_setup ( self , pdb ) : <EOL> self . update_renderer ( ) <EOL> self . renderer . set_pdb ( pdb ) <EOL> def load_main_config ( self ) : <EOL> r = super ( PDBPowerline , self ) . load_main_config ( ) <EOL> config_overrides = os . environ . get ( '<STR_LIT>' ) <EOL> if config_overrides : <EOL> mergedicts ( r , mergeargs ( parse_override_var ( config_overrides ) ) ) <EOL> return r <EOL> def load_theme_config ( self , name ) : <EOL> r = super ( PDBPowerline , self ) . load_theme_config ( name ) <EOL> theme_overrides = os . environ . get ( '<STR_LIT>' ) <EOL> if theme_overrides : <EOL> theme_overrides_dict = mergeargs ( parse_override_var ( theme_overrides ) ) <EOL> if name in theme_overrides_dict : <EOL> mergedicts ( r , theme_overrides_dict [ name ] ) <EOL> return r <EOL> def get_config_paths ( self ) : <EOL> paths = [ path for path in os . environ . get ( '<STR_LIT>' , '<STR_LIT>' ) . split ( '<STR_LIT::>' ) if path ] <EOL> return paths or super ( PDBPowerline , self ) . get_config_paths ( ) <EOL> if sys . version_info < ( <NUM_LIT:3> , ) and platform . python_implementation ( ) == '<STR_LIT>' : <EOL> get_encoding = staticmethod ( lambda : '<STR_LIT:ascii>' ) </s>
