Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshserver.py @ 34436:5326e4ef1dab
style: never put multiple statements on one line
Differential Revision: https://phab.mercurial-scm.org/D905
author | Alex Gaynor <agaynor@mozilla.com> |
---|---|
date | Fri, 29 Sep 2017 15:49:20 +0000 |
parents | a150173da1c1 |
children | 8cdb671dbd0b |
comparison
equal
deleted
inserted
replaced
34435:884b595f5195 | 34436:5326e4ef1dab |
---|---|
125 impl = getattr(self, 'do_' + cmd, None) | 125 impl = getattr(self, 'do_' + cmd, None) |
126 if impl: | 126 if impl: |
127 r = impl() | 127 r = impl() |
128 if r is not None: | 128 if r is not None: |
129 self.sendresponse(r) | 129 self.sendresponse(r) |
130 else: self.sendresponse("") | 130 else: |
131 self.sendresponse("") | |
131 return cmd != '' | 132 return cmd != '' |
132 | 133 |
133 def _client(self): | 134 def _client(self): |
134 client = encoding.environ.get('SSH_CLIENT', '').split(' ', 1)[0] | 135 client = encoding.environ.get('SSH_CLIENT', '').split(' ', 1)[0] |
135 return 'remote:ssh:' + client | 136 return 'remote:ssh:' + client |