import subprocess


def checkout(rev, repo, dir):
    if rev != '':
        rev = '-r' + rev
    p = subprocess.Popen(' '.join(['svn', 'co', rev, repo, dir]), shell=True)
    p.wait()

32b6872e7fdf3b318fddcce82870bb7af6d5c6d5
<mask token>

<mask token>


def checkout(rev, repo, dir):
    if rev != '':
        rev = '-r' + rev
    p = subprocess.Popen(' '.join(['svn', 'co', rev, repo, dir]), shell=True)
    p.wait()

import subprocess


def checkout(rev, repo, dir):
    if rev != '':
        rev = '-r' + rev
    p = subprocess.Popen(' '.join(['svn', 'co', rev, repo, dir]), shell=True)
    p.wait()
