1 import types
2 import time
5 if '@' not in url:
6 return url
7 if '://' not in url:
8 return url
9
10
11 protocol_url = url.split('://')
12 protocol = protocol_url[0]
13 repo_url = protocol_url[1].split('@')[-1]
14
15 return protocol + '://' + repo_url
16
17
18 -def now(_reactor=None):
23
25 """An obfuscated string in a command"""
27 self.real = real
28 self.fake = fake
29
32
35
37 return other.__class__ is self.__class__ and \
38 other.real == self.real and \
39 other.fake == self.fake
40
41 @staticmethod
43 if isinstance(s, (str, unicode)):
44 return s
45 else:
46 return str(s)
47
48 @staticmethod
59
60 @staticmethod
71