Ejemplo n.º 1
0
 def __new__(cls, path, rev=None, auth=None):
     self = object.__new__(cls)
     if isinstance(path, cls):
         rev = path.rev
         auth = path.auth
         path = path.strpath
     svncommon.checkbadchars(path)
     path = path.rstrip("/")
     self.strpath = path
     self.rev = rev
     self.auth = auth
     return self
Ejemplo n.º 2
0
Archivo: svnurl.py Proyecto: 6br/servo
 def __new__(cls, path, rev=None, auth=None):
     self = object.__new__(cls)
     if isinstance(path, cls):
         rev = path.rev
         auth = path.auth
         path = path.strpath
     svncommon.checkbadchars(path)
     path = path.rstrip('/')
     self.strpath = path
     self.rev = rev
     self.auth = auth
     return self