Skip to content

Instantly share code, notes, and snippets.

View polym's full-sized avatar

hongbo.mo polym

  • UPYUN
  • Zhejiang Hangzhou, China
View GitHub Profile
@polym
polym / merge.py
Created February 28, 2019 10:17
Swagger.yaml 化整为零
import os
import yaml
from collections import OrderedDict
class PerfectDumper(yaml.Dumper):
def increase_indent(self, flow=False, indentless=False):
return super(PerfectDumper, self).increase_indent(flow, False)
class UnsortableList(list):
def sort(self, *args, **kwargs):