Commits

Ian Cordasco  committed 892e3f8

A Deployment payload is no longer a string

- See http://developer.github.com/changes/2014-03-03-deployments-api-updates/

  • Participants
  • Parent commits f2d5dde
  • Branches develop

Comments (0)

Files changed (1)

File github3/repos/deployment.py

             self.creator = User(self.creator, self)
 
         #: JSON payload as a string
-        self.payload = status.get('payload', '')
-
-        #: Parsed JSON payload
-        self.json_payload = loads(self.payload)
+        self.payload = status.get('payload', {})
 
         #: Target URL of the deployment
         self.target_url = status.get('target_url')