~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/bzr_access

  • Committer: John Arbash Meinel
  • Date: 2008-01-04 01:48:32 UTC
  • mto: This revision was merged to the branch mainline in revision 3165.
  • Revision ID: john@arbash-meinel.com-20080104014832-1xwbcbueft0cyqtc
a small bit of cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
    if not os.environ.has_key("SSH_ORIGINAL_COMMAND"):
208
208
        error("Environment variable SSH_ORIGINAL_COMMAND missing.", EXIT_BADENV)
209
209
    directory = get_directory(os.environ["SSH_ORIGINAL_COMMAND"])
210
 
    if not len(directory):
 
210
    if len(directory) == 0:
211
211
        error("Bad directory name.", EXIT_BADDIR)
212
212
 
213
213
    # Control user name