<s> import sys <EOL> import logging <EOL> import sublime <EOL> logging . basicConfig ( level = logging . WARNING , format = "<STR_LIT>" ) <EOL> logger = logging . getLogger ( '<STR_LIT>' ) <EOL> LOAD_ORDER = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> needs_reload = [ n for n , m in list ( sys . modules . items ( ) ) if n [ <NUM_LIT:0> : <NUM_LIT:4> ] == '<STR_LIT>' and m is not None ] <EOL> reloaded = [ ] <EOL> for postfix in LOAD_ORDER : <EOL> module = '<STR_LIT>' + postfix <EOL> if module in needs_reload : <EOL> reloaded . append ( module ) <EOL> reload ( sys . modules [ module ] ) <EOL> if reloaded : <EOL> logger . info ( '<STR_LIT>' % "<STR_LIT:U+002CU+0020>" . join ( reloaded ) ) <EOL> if sys . version_info [ <NUM_LIT:0> ] == <NUM_LIT:2> : <EOL> settings = sublime . load_settings ( '<STR_LIT>' ) <EOL> lvl = getattr ( logging , settings . get ( '<STR_LIT>' , '<STR_LIT>' ) . upper ( ) , logging . WARNING ) <EOL> logger . setLevel ( lvl ) <EOL> from sgit import * <EOL> from sgit . git_extensions . legit import * <EOL> from sgit . git_extensions . git_flow import * <EOL> git_extensions . legit . enabled = settings . get ( '<STR_LIT>' , { } ) . get ( '<STR_LIT>' , True ) <EOL> git_extensions . git_flow . enabled = settings . get ( '<STR_LIT>' , { } ) . get ( '<STR_LIT>' , True ) <EOL> def unload_handler ( ) : <EOL> logging . shutdown ( ) <EOL> else : <EOL> from . sgit import * <EOL> from . sgit . git_extensions . legit import * <EOL> from . sgit . git_extensions . git_flow import * <EOL> def plugin_loaded ( ) : <EOL> settings = sublime . load_settings ( '<STR_LIT>' ) <EOL> lvl = getattr ( logging , settings . get ( '<STR_LIT>' , '<STR_LIT>' ) . upper ( ) , logging . WARNING ) <EOL> logger . setLevel ( lvl ) <EOL> git_extensions . legit . enabled = settings . get ( '<STR_LIT>' , { } ) . get ( '<STR_LIT>' , True ) <EOL> git_extensions . git_flow . enabled = settings . get ( '<STR_LIT>' , { } ) . get ( '<STR_LIT>' , True ) <EOL> def plugin_unloaded ( ) : <EOL> logging . shutdown ( ) </s>
