diff options
author | Michael Elkins <melkins@tislabs.com> | 2012-02-03 23:55:45 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2012-02-03 23:55:45 +0000 |
commit | 964a41c68226c66930e6f9474e221d5bcd2f1e22 (patch) | |
tree | 05104be763f06dedd6685424f250b701d6f7d226 | |
parent | f05d09675e9f5cd366e8bc25d038073ae8818c96 (diff) |
strip empty lines from irdbd schema. closes #163
svn path=/branches/tk161/; revision=4289
-rw-r--r-- | rpkid/rpki-sql-setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpkid/rpki-sql-setup.py b/rpkid/rpki-sql-setup.py index c2d41cee..0a900399 100644 --- a/rpkid/rpki-sql-setup.py +++ b/rpkid/rpki-sql-setup.py @@ -34,7 +34,8 @@ def read_schema(name): line = " ".join(line.split()) if line and not line.startswith("--"): lines.append(line) - return [statement.strip() for statement in " ".join(lines).rstrip(";").split(";")] + + return [statement.strip() for statement in " ".join(lines).rstrip(";").split(";") if statement.strip()] def sql_setup(name): """ |