@@ -53,11 +53,15 @@ def _normalized_url_rev(self):
5353 url [2 ] = path
5454 if "rev" in self .source and "revision" in self .source :
5555 raise ValueError (
56- "The source definition of '{}' contains duplicate revision options." .format (self .source ["name" ])
56+ "The source definition of '{}' contains duplicate revision options." .format (
57+ self .source ["name" ]
58+ )
5759 )
5860 if rev is not None and ("rev" in self .source or "revision" in self .source ):
5961 raise ValueError (
60- "The url of '{}' contains a revision and there is an additional revision option." .format (self .source ["name" ])
62+ "The url of '{}' contains a revision and there is an additional revision option." .format (
63+ self .source ["name" ]
64+ )
6165 )
6266 elif rev is None :
6367 rev = self .source .get ("revision" , self .source .get ("rev" ))
@@ -101,7 +105,9 @@ def _svn_check_version(self):
101105 sys .exit (1 )
102106 if (version < (1 , 5 )) and not _svn_version_warning :
103107 logger .warning (
104- "The installed 'svn' command is too old. Expected 1.5 or newer, got {}." .format ("." .join ([str (x ) for x in version ]))
108+ "The installed 'svn' command is too old. Expected 1.5 or newer, got {}." .format (
109+ "." .join ([str (x ) for x in version ])
110+ )
105111 )
106112 _svn_version_warning = True
107113
@@ -134,7 +140,9 @@ def _svn_error_wrapper(self, f, **kwargs):
134140 common .output_lock .release ()
135141 continue
136142 print (
137- "Authorization needed for '{}' at '{}'" .format (self .source ["name" ], self .source ["url" ])
143+ "Authorization needed for '{}' at '{}'" .format (
144+ self .source ["name" ], self .source ["url" ]
145+ )
138146 )
139147 user = input ("Username: " )
140148 passwd = getpass .getpass ("Password: " )
@@ -181,7 +189,9 @@ def _svn_checkout(self, **kwargs):
181189 stdout , stderr , returncode = self ._svn_communicate (args , url , ** kwargs )
182190 if returncode != 0 :
183191 raise SVNError (
184- "Subversion checkout for '{}' failed.\n {}" .format (name , stderr .decode ("utf8" ))
192+ "Subversion checkout for '{}' failed.\n {}" .format (
193+ name , stderr .decode ("utf8" )
194+ )
185195 )
186196 if kwargs .get ("verbose" , False ):
187197 return stdout .decode ("utf8" )
@@ -339,10 +349,14 @@ def checkout(self, **kwargs):
339349 url = self ._svn_info ().get ("url" , "" )
340350 if url :
341351 msg = f"The current checkout of '{ name } ' is from '{ url } '."
342- msg += "\n Can't switch package to '{}' because it's dirty." .format (self .source ["url" ])
352+ msg += (
353+ "\n Can't switch package to '{}' because it's dirty." .format (
354+ self .source ["url" ]
355+ )
356+ )
343357 else :
344- msg = (
345- "Can't switch package '{}' to '{}' because it's dirty." . format ( name , self .source ["url" ])
358+ msg = "Can't switch package '{}' to '{}' because it's dirty." . format (
359+ name , self .source ["url" ]
346360 )
347361 raise SVNError (msg )
348362 else :
0 commit comments