Created
November 19, 2012 20:00
-
-
Save tsabat/4113503 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/timsabat/Sites/doula/src/doula/<ipython-input-16-998d6f253004> in <module>() | |
----> 1 reload(j); p = j.PackageJava('userdal', '1.0') | |
/Users/timsabat/Sites/doula/src/doula/doula/models/package_java.py in __init__(self, name, version, remote) | |
4 | |
5 def __init__(self, name, version, remote=''): | |
----> 6 super(Package, self).__init__(name, version, remote) | |
7 | |
8 def update_version(self, repo, new_version): | |
TypeError: super() takes at most 2 arguments (5 given) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Package(object): | |
""" | |
Represents a python package | |
""" | |
def __init__(self, name, version, remote=''): | |
self.name = name | |
self.version = version | |
self.remote = remote | |
self.github_info = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PackageJava(Package): | |
def __init__(self, name, version, remote=''): | |
super(Package, self, name, version, remote).__init__() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment