pymensago/userprofile.py
def _index_for_profile(self, name: str) -> int:
		'''Internal method which returns the numeric index of the named profile or -1 on error'''
		if not name:
			return -1
		
		name_squashed = name.casefold()
		for i in range(0, len(self.profiles)):
			if name_squashed == self.profiles[i].name:
				return i
		return -1
Internal method which returns the numeric index of the named profile or -1 on error
Internal method which returns the numeric index of the named profile or -1 on error
Internal method which returns the numeric index of the named profile or - 1 on error
def _index_for_profile(self, name: str) -> int:
		if not name:
			return -1
		name_squashed = name.casefold()
		for i in range(0, len(self.profiles)):
			if name_squashed == self.profiles[i].name:
				return i
		return -1
def _index_for_profile ( self , name : str ) -> int : if not name : return - 1 name_squashed = name . casefold ( ) for i in range ( 0 , len ( self . profiles ) ) : if name_squashed == self . profiles [ i ] . name : return i return - 1
Internal method which returns the numeric index of the named profile or -1 on error
Internal method which returns the numeric index of the named profile or - 1 on error
'''Internal method which returns the numeric index of the named profile or -1 on error'''
self
name
str