diff options
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -46,7 +46,7 @@ except ImportError: | |||
| 46 | from color import SetDefaultColoring | 46 | from color import SetDefaultColoring |
| 47 | import event_log | 47 | import event_log |
| 48 | from repo_trace import SetTrace | 48 | from repo_trace import SetTrace |
| 49 | from git_command import git, GitCommand, RepoUserAgent | 49 | from git_command import git, GitCommand, user_agent |
| 50 | from git_config import init_ssh, close_ssh | 50 | from git_config import init_ssh, close_ssh |
| 51 | from command import InteractiveCommand | 51 | from command import InteractiveCommand |
| 52 | from command import MirrorSafeCommand | 52 | from command import MirrorSafeCommand |
| @@ -297,11 +297,11 @@ def _PruneOptions(argv, opt): | |||
| 297 | 297 | ||
| 298 | class _UserAgentHandler(urllib.request.BaseHandler): | 298 | class _UserAgentHandler(urllib.request.BaseHandler): |
| 299 | def http_request(self, req): | 299 | def http_request(self, req): |
| 300 | req.add_header('User-Agent', RepoUserAgent()) | 300 | req.add_header('User-Agent', user_agent.repo) |
| 301 | return req | 301 | return req |
| 302 | 302 | ||
| 303 | def https_request(self, req): | 303 | def https_request(self, req): |
| 304 | req.add_header('User-Agent', RepoUserAgent()) | 304 | req.add_header('User-Agent', user_agent.repo) |
| 305 | return req | 305 | return req |
| 306 | 306 | ||
| 307 | def _AddPasswordFromUserInput(handler, msg, req): | 307 | def _AddPasswordFromUserInput(handler, msg, req): |
