/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to contrib/brz_access

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
        error("Path to repository not readable.", EXIT_REPO_NOREAD)
190
190
    
191
191
    # Extract the repository path from the command passed to ssh.
192
 
    if not os.environ.has_key("SSH_ORIGINAL_COMMAND"):
 
192
    if "SSH_ORIGINAL_COMMAND" not in os.environ:
193
193
        error("Environment variable SSH_ORIGINAL_COMMAND missing.", EXIT_BADENV)
194
194
    directory = get_directory(os.environ["SSH_ORIGINAL_COMMAND"])
195
195
    if len(directory) == 0: