self.save()
def deefuzzer_write_conf(self):
- write_conf(self.conf, self.deefuzzer_file)
+ write_conf(self.conf, self.deefuzzer_file.path)
def deefuzzer_start(self):
command = '/usr/local/bin/deefuzzer ' + self.deefuzzer_file.path + ' &'
elif 'yaml' in ext or 'yml' in ext:
import yaml
- yaml.dump(conf_dict, f)
+ def represent_unicode(dumper, data):
+ return dumper.represent_scalar(u'tag:yaml.org,2002:str', data)
+ yaml.add_representer(unicode, represent_unicode)
+ yaml.dump(conf_dict, f, encoding='utf-8',
+ allow_unicode=True,
+ default_flow_style=False,
+ explicit_start=True
+ )
elif 'json' in ext:
import json