Kaydet (Commit) cc7371c4 authored tarafından Fred Drake's avatar Fred Drake

Removed --l2h-config option; it introduced unnecessary complexity and

is not needed anywhere.
üst cd079c4c
...@@ -94,7 +94,6 @@ class Options: ...@@ -94,7 +94,6 @@ class Options:
ALL_FORMATS = ("dvi", "html", "pdf", "ps", "text") ALL_FORMATS = ("dvi", "html", "pdf", "ps", "text")
def __init__(self): def __init__(self):
self.config_files = []
self.formats = [] self.formats = []
def __getitem__(self, key): def __getitem__(self, key):
...@@ -107,7 +106,7 @@ class Options: ...@@ -107,7 +106,7 @@ class Options:
def parse(self, args): def parse(self, args):
opts, args = getopt.getopt(args, "Hi:a:s:lDkqr:", opts, args = getopt.getopt(args, "Hi:a:s:lDkqr:",
["all", "postscript", "help", "iconserver=", ["all", "postscript", "help", "iconserver=",
"address=", "a4", "l2h-config=", "letter", "address=", "a4", "letter",
"link=", "split=", "logging", "debugging", "link=", "split=", "logging", "debugging",
"keep", "quiet", "runs=", "image-type=", "keep", "quiet", "runs=", "image-type=",
"about=", "numeric"] "about=", "numeric"]
...@@ -126,8 +125,6 @@ class Options: ...@@ -126,8 +125,6 @@ class Options:
self.paper = "a4" self.paper = "a4"
elif opt == "--letter": elif opt == "--letter":
self.paper = "letter" self.paper = "letter"
elif opt == "--l2h-config":
self.config_files.append(arg)
elif opt == "--link": elif opt == "--link":
self.max_link_depth = int(arg) self.max_link_depth = int(arg)
elif opt in ("-s", "--split"): elif opt in ("-s", "--split"):
...@@ -370,12 +367,6 @@ class Job: ...@@ -370,12 +367,6 @@ class Job:
"$NO_AUTO_LINK = 1;\n" "$NO_AUTO_LINK = 1;\n"
) )
options = self.options options = self.options
for fn in options.config_files:
fp.write(open(fn).read())
fp.write("\n"
"\n"
'print "\nInitializing from file: %s\";\n\n'
% string_to_perl(fn))
l2hoption(fp, "ABOUT_FILE", options.about_file) l2hoption(fp, "ABOUT_FILE", options.about_file)
l2hoption(fp, "ICONSERVER", options.icon_server) l2hoption(fp, "ICONSERVER", options.icon_server)
l2hoption(fp, "IMAGE_TYPE", options.image_type) l2hoption(fp, "IMAGE_TYPE", options.image_type)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment