Use absolute imports. May help with Python 3

This commit is contained in:
Vincent Jacques
2012-11-21 20:13:12 +01:00
parent 065cd9123e
commit 9a03610f7b
51 changed files with 1195 additions and 1203 deletions
+15 -15
View File
@@ -13,12 +13,12 @@
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
import GithubObject
import github.GithubObject
import NamedUser
import github.NamedUser
class PullRequestComment(GithubObject.GithubObject):
class PullRequestComment(github.GithubObject.GithubObject):
@property
def body(self):
self._completeIfNotSet(self._body)
@@ -96,17 +96,17 @@ class PullRequestComment(GithubObject.GithubObject):
self._useAttributes(data)
def _initAttributes(self):
self._body = GithubObject.NotSet
self._commit_id = GithubObject.NotSet
self._created_at = GithubObject.NotSet
self._id = GithubObject.NotSet
self._original_commit_id = GithubObject.NotSet
self._original_position = GithubObject.NotSet
self._path = GithubObject.NotSet
self._position = GithubObject.NotSet
self._updated_at = GithubObject.NotSet
self._url = GithubObject.NotSet
self._user = GithubObject.NotSet
self._body = github.GithubObject.NotSet
self._commit_id = github.GithubObject.NotSet
self._created_at = github.GithubObject.NotSet
self._id = github.GithubObject.NotSet
self._original_commit_id = github.GithubObject.NotSet
self._original_position = github.GithubObject.NotSet
self._path = github.GithubObject.NotSet
self._position = github.GithubObject.NotSet
self._updated_at = github.GithubObject.NotSet
self._url = github.GithubObject.NotSet
self._user = github.GithubObject.NotSet
def _useAttributes(self, attributes):
if "body" in attributes: # pragma no branch
@@ -141,4 +141,4 @@ class PullRequestComment(GithubObject.GithubObject):
self._url = attributes["url"]
if "user" in attributes: # pragma no branch
assert attributes["user"] is None or isinstance(attributes["user"], dict), attributes["user"]
self._user = None if attributes["user"] is None else NamedUser.NamedUser(self._requester, attributes["user"], completed=False)
self._user = None if attributes["user"] is None else github.NamedUser.NamedUser(self._requester, attributes["user"], completed=False)