"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "client/pyre.py" between
pyre-check-0.0.51.tar.gz and pyre-check-0.0.52.tar.gz

About: Pyre is a performant type checker for Python (ships with Pysa, a security focused static analysis tool).

pyre.py  (pyre-check-0.0.51):pyre.py  (pyre-check-0.0.52)
skipping to change at line 93 skipping to change at line 93
start_time = time.time() start_time = time.time()
command: Optional[CommandParser] = None command: Optional[CommandParser] = None
client_exception_message = "" client_exception_message = ""
should_log_statistics = True should_log_statistics = True
# Having this as a fails-by-default helps flag unexpected exit # Having this as a fails-by-default helps flag unexpected exit
# from exception flows. # from exception flows.
exit_code = ExitCode.FAILURE exit_code = ExitCode.FAILURE
try: try:
original_directory = os.getcwd() original_directory = os.getcwd()
# TODO(T57959968): Stop changing the directory in the client
os.chdir(find_project_root(original_directory))
if arguments.version: if arguments.version:
try: try:
# TODO(T64512953): Decouple configuration creation with command creation # TODO(T64512953): Decouple configuration creation with command creation
configuration = arguments.command( configuration = arguments.command(
arguments, original_directory arguments, original_directory
).configuration ).configuration
if configuration: if configuration:
binary_version = configuration.get_binary_version() binary_version = configuration.get_binary_version()
if binary_version: if binary_version:
log.stdout.write(f"Binary version: {binary_version}\n") log.stdout.write(f"Binary version: {binary_version}\n")
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)