Skip to content
Snippets Groups Projects
Commit b2b771ca authored by stijn's avatar stijn Committed by Damien George
Browse files

py/makeqstrdefs.py: Remove unused function/variable/import.

parent 7a012f47
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,6 @@ qstr. Each qstr is transformed into a qstr definition of the form 'Q(...)'. ...@@ -5,7 +5,6 @@ qstr. Each qstr is transformed into a qstr definition of the form 'Q(...)'.
This script works with Python 2.6, 2.7, 3.3 and 3.4. This script works with Python 2.6, 2.7, 3.3 and 3.4.
""" """
import sys
import re import re
import argparse import argparse
import os import os
...@@ -15,11 +14,6 @@ import os ...@@ -15,11 +14,6 @@ import os
QSTRING_BLACK_LIST = {'NULL', 'number_of', } QSTRING_BLACK_LIST = {'NULL', 'number_of', }
def debug(message):
#sys.stderr.write("%s\n" % message)
pass
def write_out(fname, output): def write_out(fname, output):
if output: if output:
fname = fname.replace("/", "__").replace("..", "@@") fname = fname.replace("/", "__").replace("..", "@@")
...@@ -29,7 +23,6 @@ def write_out(fname, output): ...@@ -29,7 +23,6 @@ def write_out(fname, output):
def process_file(f): def process_file(f):
output = [] output = []
last_fname = None last_fname = None
outf = None
for line in f: for line in f:
if line and line[0:2] == "# ": if line and line[0:2] == "# ":
comp = line.split() comp = line.split()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment