Show More
@@ -201,20 +201,22 b' class convert_cvs(converter_source):' | |||
|
201 | 201 | |
|
202 | 202 | if not passw: |
|
203 | 203 | passw = "A" |
|
204 |
|
|
|
205 | for line in pf.read().splitlines(): | |
|
206 |
p |
|
|
207 |
|
|
|
208 | # /1 :pserver:user@example.com:2401/cvsroot/foo Ah<Z | |
|
209 |
part1 |
|
|
210 | format = format1 | |
|
211 | else: | |
|
212 | # :pserver:user@example.com:/cvsroot/foo Ah<Z | |
|
213 |
|
|
|
214 | if part1 == format: | |
|
215 |
|
|
|
216 |
|
|
|
217 | pf.close() | |
|
204 | cvspass = os.path.expanduser("~/.cvspass") | |
|
205 | if os.path.exists(cvspass): | |
|
206 | pf = open(cvspass) | |
|
207 | for line in pf.read().splitlines(): | |
|
208 | part1, part2 = line.split(' ', 1) | |
|
209 | if part1 == '/1': | |
|
210 | # /1 :pserver:user@example.com:2401/cvsroot/foo Ah<Z | |
|
211 | part1, part2 = part2.split(' ', 1) | |
|
212 | format = format1 | |
|
213 | else: | |
|
214 | # :pserver:user@example.com:/cvsroot/foo Ah<Z | |
|
215 | format = format0 | |
|
216 | if part1 == format: | |
|
217 | passw = part2 | |
|
218 | break | |
|
219 | pf.close() | |
|
218 | 220 | |
|
219 | 221 | sck = socket.socket() |
|
220 | 222 | sck.connect((serv, port)) |
General Comments 0
You need to be logged in to leave comments.
Login now