Anonymous avatar Anonymous committed 454a558

Convert spaces to tabs

Comments (0)

Files changed (1)

 
 def AddInternetPassword(scheme, host, port, path, accountName, password):
 	theArguments = [ 'security', 'add-internet-password', '-U',
-	    '-r', scheme, '-s', host, '-P', str(port), '-p', path,
-	     '-a', accountName, '-w', password ]
+		'-r', scheme, '-s', host, '-P', str(port), '-p', path,
+		'-a', accountName, '-w', password ]
 	thePipe = subprocess.Popen(theArguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 	theOutput = thePipe.stdout.read()
 	theOutput = thePipe.stderr.read()
 		if not thePassword:
 			parsed_url = urlparse.urlparse(keychainUri)
 			port = parsed_url.port if parsed_url.port else 0
-            # Keychain API uses four character codes for the scheme
-            # (kSecProtocolTypeHTTP or kSecProtocolTypeHTTPS)
+			# Keychain API uses four character codes for the scheme
+			# (kSecProtocolTypeHTTP or kSecProtocolTypeHTTPS)
 			scheme = 'http'
 			if parsed_url.scheme == 'https':
-			    scheme = 'htps'
+				scheme = 'htps'
 
 			logger.info('Searching for username (%s) and url (%s) in keychain' % (theUsername, keychainUri))
 			thePassword = FindInternetPassword(scheme = scheme, host = parsed_url.netloc, port = port, path = parsed_url.path, accountName = theUsername)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.