Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/mercurial/__pycache__/ |
Upload File : |
o �]Lb�= � @ sD d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZz d dlZej W n e y6 ddlmZ Y nw ddl mZ ddlmZmZmZmZmZ dd� Zd d � Zejrcdd� ZG d d� de�Zndd� Zdd� ZejsqejrwdZejZndZdZd!dd�Z d"dd�Z dd� Z!dd� Z"dd� Z#ejr�e#Z$ne!Z$e"Z%dd � Z&dS )#� )�absolute_importN� )� selectors2)�_)�encoding�error�pycompat�scmutil�utilc C st zt t�d��} | dkr| W S W n ttfy Y nw zt tjd �} | dkr+| W S W dS ttfy9 Y dS w )z-try to count the number of CPUs on the system�SC_NPROCESSORS_ONLNr s NUMBER_OF_PROCESSORSr )�int�os�sysconf�AttributeError� ValueErrorr �environ�KeyError)�n� r �2/usr/lib/python3/dist-packages/mercurial/worker.py� countcpus"