Fix typos and grammar issues
This commit is contained in:
@@ -46,7 +46,7 @@ def checkForumAccount(forums_username):
|
||||
user.forums_username = forums_username
|
||||
db.session.add(user)
|
||||
|
||||
# Get github username
|
||||
# Get GitHub username
|
||||
github_username = profile.get("github")
|
||||
if github_username is not None and github_username.strip() != "":
|
||||
print("Updated GitHub username for " + user.display_name + " to " + github_username)
|
||||
|
||||
@@ -18,7 +18,7 @@ class ContentType(Enum):
|
||||
|
||||
def validate_same(self, other):
|
||||
"""
|
||||
Whether or not `other` is an acceptable type for this
|
||||
Whether `other` is an acceptable type for this
|
||||
"""
|
||||
assert other
|
||||
|
||||
|
||||
@@ -203,22 +203,22 @@ class PackageTreeNode:
|
||||
self.children.append(child)
|
||||
|
||||
def getModNames(self):
|
||||
return self.fold("name", type=ContentType.MOD)
|
||||
return self.fold("name", type_=ContentType.MOD)
|
||||
|
||||
# attr: Attribute name
|
||||
# key: Key in attribute
|
||||
# retval: Accumulator
|
||||
# type: Filter to type
|
||||
def fold(self, attr, key=None, retval=None, type=None):
|
||||
# type_: Filter to type
|
||||
def fold(self, attr, key=None, retval=None, type_=None):
|
||||
if retval is None:
|
||||
retval = set()
|
||||
|
||||
# Iterate through children
|
||||
for child in self.children:
|
||||
child.fold(attr, key, retval, type)
|
||||
child.fold(attr, key, retval, type_)
|
||||
|
||||
# Filter on type
|
||||
if type and type != self.type:
|
||||
if type_ and type_ != self.type:
|
||||
return retval
|
||||
|
||||
# Get attribute
|
||||
|
||||
Reference in New Issue
Block a user