Revision f01738fc lib/server/noded.py
b/lib/server/noded.py | ||
---|---|---|
33 | 33 |
import sys |
34 | 34 |
import logging |
35 | 35 |
import signal |
36 |
import codecs |
|
36 | 37 |
|
37 | 38 |
from optparse import OptionParser |
38 | 39 |
|
... | ... | |
964 | 965 |
print >> sys.stderr, ("Usage: %s [-f] [-d] [-p port] [-b ADDRESS]" % |
965 | 966 |
sys.argv[0]) |
966 | 967 |
sys.exit(constants.EXIT_FAILURE) |
968 |
try: |
|
969 |
codecs.lookup("string-escape") |
|
970 |
except LookupError: |
|
971 |
print >> sys.stderr, ("Can't load the string-escape code which is part" |
|
972 |
" of the Python installation. Is your installation" |
|
973 |
" complete/correct? Aborting.") |
|
974 |
sys.exit(constants.EXIT_FAILURE) |
|
967 | 975 |
|
968 | 976 |
|
969 | 977 |
def PrepNoded(options, _): |
Also available in: Unified diff