def put(self):
        """
        Save changes made to the object to DocumentCloud.

        According to DocumentCloud's docs, edits are allowed for the following
        fields:

            * title
            * source
            * description
            * related_article
            * access
            * published_url
            * data key/value pairs

        Returns nothing.
        """
        params = dict(
            title=self.title or '',
            source=self.source or '',
            description=self.description or '',
            related_article=self.resources.related_article or '',
            published_url=self.resources.published_url or '',
            access=self.access,
            data=self.data,
        )
        self._connection.put(self.id % 'documents/%s.json', params)
dataset/ETHPy150Open datadesk/python-documentcloud/documentcloud/__init__.py/Document.put/swapped operands of `%`