Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Apply pyfmt to fbcode/tools
Browse files Browse the repository at this point in the history
Summary:
Formats a subset of opted-in Python files in fbsource.
Black formatting was applied first, which is guaranteed
safe as the AST will not have changed during formatting.
Pyfmt was then run, which also includes import sorting.
The changes from isort were manually reviewed, and
some potentially dangerous changes were reverted,
and the `# isort:skip_file` directive was added to those
files. A final run of pyfmt shows no more changes to
be applied.

Reviewed By: zertosh

Differential Revision: D24106756

fbshipit-source-id: 7efa84885ffb5bc664b50ba5d9aba0e9984e455a
  • Loading branch information
amyreese authored and facebook-github-bot committed Oct 5, 2020
1 parent 33f6d7d commit 2d389f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xar/deprecated/mount_xar.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ def _read_header(self):

def mount(self, xarexec):
logger.info("Mounting %s with %s" % (self.filename, xarexec))
proc = subprocess.Popen([xarexec.split(), "-m", self.filename], stdout=subprocess.PIPE)
proc = subprocess.Popen(
[xarexec.split(), "-m", self.filename], stdout=subprocess.PIPE
)
stdout, _ = proc.communicate()
if proc.returncode != 0:
logger.fatal("Mount of %s failed, see stderr for details" % self.filename)
Expand Down

0 comments on commit 2d389f2

Please sign in to comment.