equal
deleted
inserted
replaced
3 # Copyright 2013 Facebook, Inc. |
3 # Copyright 2013 Facebook, Inc. |
4 # |
4 # |
5 # This software may be used and distributed according to the terms of the |
5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. |
6 # GNU General Public License version 2 or any later version. |
7 |
7 |
8 from i18n import _ |
8 from __future__ import absolute_import |
9 import errno, os, signal, sys, threading |
9 |
10 import util |
10 import errno |
|
11 import os |
|
12 import signal |
|
13 import sys |
|
14 import threading |
|
15 |
|
16 from .i18n import _ |
|
17 from . import util |
11 |
18 |
12 def countcpus(): |
19 def countcpus(): |
13 '''try to count the number of CPUs on the system''' |
20 '''try to count the number of CPUs on the system''' |
14 |
21 |
15 # posix |
22 # posix |