Skip to content

Commit

Permalink
Fix pep8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
santegoeds committed Apr 4, 2014
1 parent e49483c commit 820201b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions master/buildbot/changes/svnpoller.py
Expand Up @@ -57,7 +57,7 @@ def split_file_branches(path):

def split_file_projects_branches(path):
# turn projectname/trunk/subdir/file.c into dict(project=projectname, branch=trunk, path=subdir/file.c)
if not "/" in path:
if "/" not in path:
return None
project, path = path.split("/", 1)
f = split_file_branches(path)
Expand Down Expand Up @@ -108,8 +108,8 @@ def __init__(self, svnurl, split_file=None,

self.revlinktmpl = revlinktmpl

self.environ = os.environ.copy() # include environment variables
# required for ssh-agent auth
# include environment variables required for ssh-agent auth
self.environ = os.environ.copy()

self.svnbin = svnbin
self.histmax = histmax
Expand Down Expand Up @@ -361,7 +361,7 @@ def create_changes(self, new_logentries):
if where:
branch = where.get("branch", None)
filename = where["path"]
if not branch in branches:
if branch not in branches:
branches[branch] = {'files': [], 'number_of_directories': 0}
if filename == "":
# root directory of branch
Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/test/unit/test_changes_svnpoller.py
Expand Up @@ -387,7 +387,7 @@ def makeInfoExpect(self, password='bbrocks'):
if password is not None:
args.append('--password=' + password)
return gpo.Expect(*args)

def makeLogExpect(self, password='bbrocks'):
args = ['svn', 'log', '--xml', '--verbose', '--non-interactive',
'--username=dustin']
Expand Down

0 comments on commit 820201b

Please sign in to comment.