convert Bazaar and class into methods
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jenkins-launchpad-plugin |
New
|
Undecided
|
Unassigned |
Bug Description
See this for more context:
https:/
112 +class Bazaar(object):
113 + def _call(self, args):
114 + try:
115 + subprocess.
116 + except subprocess.
117 + logger.error('Call for bzr ' + str(args) + ' failed')
118 + exit(1)
119 +
120 + def _call_output(self, args):
121 + try:
122 + output = subprocess.
123 + stderr=
124 + return output
125 + except subprocess.
126 + logger.error('Call for bzr ' + str(args) + ' failed')
127 + exit(1)
128 +
129 + def whoami(self, who):
130 + self._call(
131 +
132 + def branch(self, branch, target_dir):
133 + self._call(
134 +
135 + def revert(self, target_dir):
136 + self._call(
137 +
138 + def merge(self, branch):
139 + self._call(
140 +
141 + def build(self, recipe, target):
142 + self._call(
143 +
144 + def revno(self, target):
145 + return int(self.
As thomi mentioned, this doesn't need to be a class. Comment only, hope you add it to your TODO :-)