Skip to content

Commit

Permalink
Convert FBCODE to use the Ruff Formatter
Browse files Browse the repository at this point in the history
Summary:
Converts the directory specified to use the Ruff formatter. This is the last big diff to convert all of Fbcode to Ruff.

pomsky_fix_bugs

drop-conflicts
bypass-github-export-checks
allow-large-files

Reviewed By: amyreese

Differential Revision: D66886610

fbshipit-source-id: 8276a7f6164efec189ca0b87e535543ed5bc3615
  • Loading branch information
Thomas Polasek authored and facebook-github-bot committed Dec 6, 2024
1 parent 36e5c5b commit f0155ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions folly/coro/scripts/co_bt.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,7 @@ def get_file_name_and_line(self) -> tuple[str, int] | None:
regex = re.compile(r"Line (\d+) of (.*) starts at.*")
output = GdbValue.execute(
f"info line *{self.to_hex()}",
).split(
"\n"
)[0]
).split("\n")[0]
groups = regex.match(output)
return (
(groups.group(2).strip('"'), int(groups.group(1)))
Expand All @@ -614,9 +612,7 @@ def get_func_name(self) -> str | None:
regex = re.compile(r"(.*) \+ \d+ in section.* of .*")
output = GdbValue.execute(
f"info symbol {self.to_hex()}",
).split(
"\n"
)[0]
).split("\n")[0]
groups = regex.match(output)
return groups.group(1) if groups else None

Expand Down
1 change: 0 additions & 1 deletion folly/fibers/scripts/gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,6 @@ def invoke(self, *args):
# Creating a FiberInfo object adds it to the cache, and trying to create one
# for a cached fiber will just return the same cached FiberInfo.
class FiberInfo:

NAMES = {}

# Lookup of fiber address/name to (mid, fid)
Expand Down

0 comments on commit f0155ae

Please sign in to comment.