Helper to determine the node name of this machine.
(default='')
| 641 | return re.sub(r'-{2,}', '-', platform).rstrip('-') |
| 642 | |
| 643 | def _node(default=''): |
| 644 | |
| 645 | """ Helper to determine the node name of this machine. |
| 646 | """ |
| 647 | try: |
| 648 | import socket |
| 649 | except ImportError: |
| 650 | # No sockets... |
| 651 | return default |
| 652 | try: |
| 653 | return socket.gethostname() |
| 654 | except OSError: |
| 655 | # Still not working... |
| 656 | return default |
| 657 | |
| 658 | def _follow_symlinks(filepath): |
| 659 |
no outgoing calls
no test coverage detected
searching dependent graphs…