Commits

Ronny Pfannschmidt  committed 73bd982

dont yaml load non yaml files

  • Participants
  • Parent commits 24de8ee

Comments (0)

Files changed (1)

File couchdb_compose/ddoc.py

     for path in paths:
         objectpath = path_2_attrchain(path)
         path = composer.path.join(path)
-        with path.open() as input:
+        input = path.read()
+        if path.ext == '.yml':
             data = yaml.load(input)
+        else:
+            data = input
 
         composer.push(objectpath, data)