Commits

Michał Górny committed b55d778

Fix want_r3 code for python2.

Comments (0)

Files changed (1)

smartliverebuild/vcs/git_r3.py

 	reqenv = ['EGIT_REPO_URI', 'EGIT_VERSION']
 	optenv = ['EGIT_BRANCH', 'EGIT_COMMIT', 'EGIT_MASTER']
 
-	def __init__(self, *args, want_r3=True, **kwargs):
+	def __init__(self, *args, **kwargs):
+		want_r3 = 'want_r3' in kwargs
+		if want_r3:
+			del kwargs['want_r3']
+
 		RemoteVCSSupport.__init__(self, *args, **kwargs)
 		if (self.env['EGIT_COMMIT']
 				and self.env['EGIT_COMMIT'] != (self.env.get('EGIT_BRANCH') or HEAD)):