equal
deleted
inserted
replaced
7 import sys |
7 import sys |
8 |
8 |
9 def has_symlink(): |
9 def has_symlink(): |
10 return hasattr(os, "symlink") |
10 return hasattr(os, "symlink") |
11 |
11 |
|
12 def has_fifo(): |
|
13 return hasattr(os, "mkfifo") |
|
14 |
12 checks = { |
15 checks = { |
13 "symlink": (has_symlink, "symbolic links"), |
16 "symlink": (has_symlink, "symbolic links"), |
|
17 "fifo": (has_fifo, "named pipes"), |
14 } |
18 } |
15 |
19 |
16 def list_features(): |
20 def list_features(): |
17 for name, feature in checks.iteritems(): |
21 for name, feature in checks.iteritems(): |
18 desc = feature[1] |
22 desc = feature[1] |