def get_merged_config(self):
if self.yamldocs:<EOL><INDENT>return<EOL><DEDENT>loadfiles = []<EOL>if self.configfile:<EOL><INDENT>loadfiles.append(self.configfile)<EOL><DEDENT>if self.configdir:<EOL><INDENT>loadfiles.extend(<EOL>[f for f in<EOL>[os.path.join(self.configdir, x) for x in<EOL>os.listdir(self.configdir)]<EOL>if os.path.isfile(f) and<EOL>not os.path.basename(f).startswith('<STR_LIT:.>')])<EOL><DEDENT>merged_configfile = io.StringIO()<EOL>merged_configfile.write('<STR_LIT>')<EOL>for thefile in loadfiles:<EOL><INDENT>self.logdebug('<STR_LIT>' % thefile)<EOL>merged_configfile.write(open(thefile).read())<EOL>merged_configfile.write('<STR_LIT>')<EOL><DEDENT>merged_configfile.seek(<NUM_LIT:0>)<EOL>self.logdebug('<STR_LIT>' %<EOL>merged_configfile.read())<EOL>merged_configfile.seek(<NUM_LIT:0>)<EOL>return merged_configfile<EOL>
Get merged config file.

        Returns an open StringIO containing the
        merged config file.