233a089604121931a7f9e8b3861ca4b691cc555d,descarteslabs/catalog/image_upload.py,ImageUpload,reload,#ImageUpload#,248

Before Change


        ValueError
            If the catalog object was not in the ``SAVED`` state.
        
        if self.state != DocumentState.SAVED:
            raise ValueError(
                "{} instance with id {} has not been saved".format(
                    self.__class__.__name__, self.id
                )
            )

        try:
            data, related_objects = self._send_data(
                id=self.id, method=HttpRequestMethod.GET, client=self._client
            )

After Change


            // image is not in a saved state, so doctor it up
            self.image._saved = True
            self.image._clear_modified_attributes()
            self.image.reload()

    @check_deleted
    def cancel(self):
        Cancel the upload if it is not yet completed.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: descarteslabs/descarteslabs-python
Commit Name: 233a089604121931a7f9e8b3861ca4b691cc555d
Time: 2020-01-17
Author: stephen@descarteslabs.com
File Name: descarteslabs/catalog/image_upload.py
Class Name: ImageUpload
Method Name: reload


Project Name: testerSunshine/12306
Commit Name: c43dc1bab4b9ab423837ed5f2dcbe91c9d083930
Time: 2017-05-21
Author: 931128603@qq.com
File Name: 12306login/init/select_ticket_info.py
Class Name:
Method Name:


Project Name: aliyun/aliyun-odps-python-sdk
Commit Name: 62f84af8e3ac9037891f7a5e5cfc6cbd9fa43c55
Time: 2020-09-04
Author: heks93@163.com
File Name: odps/models/session.py
Class Name: InSessionInstance
Method Name: _open_tunnel_reader