projects
/
tools
/
python-jenkinsapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a0db30
)
Fix use of for-else with no break
author
Hugh Brown
<hbrown@amplify.com>
Thu, 10 Oct 2013 23:04:20 +0000
(19:04 -0400)
committer
Hugh Brown
<hbrown@amplify.com>
Thu, 10 Oct 2013 23:32:14 +0000
(19:32 -0400)
jenkinsapi/views.py
patch
|
blob
|
history
diff --git
a/jenkinsapi/views.py
b/jenkinsapi/views.py
index
4926f5b
..
6a751e5
100644
(file)
--- a/
jenkinsapi/views.py
+++ b/
jenkinsapi/views.py
@@
-48,12
+48,7
@@
class Views(object):
def __getitem__(self, view_name):
for row in self.jenkins._data.get('views', []):
if row['name'] == view_name:
- return View(
- row['url'],
- row['name'],
- self.jenkins)
- else:
- return None
+ return View(row['url'], row['name'], self.jenkins)
def iteritems(self):
"""