示例#1
0
文件: env.py 项目: zhubonan/conda
 def to_yaml(self, stream=None):
     d = self.to_dict()
     out = compat.u(dump(d))
     if stream is None:
         return out
     stream.write(compat.b(out, encoding="utf-8"))
示例#2
0
文件: env.py 项目: jhunkeler/conda
 def to_yaml(self, stream=None):
     d = self.to_dict()
     out = compat.u(dump(d))
     if stream is None:
         return out
     stream.write(compat.b(out, encoding="utf-8"))