Removed unnecessary lines.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 24 Jan 2017 22:22:22 +0000 (22:22 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 24 Jan 2017 22:22:22 +0000 (22:22 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2591 7aebc617-e5e2-0310-91dc-80fb5f6d2477

tests/test_sqlalchemy.py
tests/test_wrmwdb.py
tests/test_wrmwmarkup.py
wrpylib/mwapi.py
wrpylib/mwdb.py
wrpylib/wrmwcache.py
wrpylib/wrmwdb.py
wrpylib/wrmwmarkup.py

index b4424de32bb5febcbeb7e0608d49d53d56ff955a..15abc88a44abc6597e08b9087d596abc95449dbd 100644 (file)
@@ -1,6 +1,5 @@
 #!/usr/bin/python3.4
 # -*- coding: iso-8859-15 -*-
-import types
 from sqlalchemy import schema
 from sqlalchemy.engine import create_engine
 from sqlalchemy.sql import select
@@ -10,7 +9,6 @@ import unittest
 
 def connect():
     engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1')
-    # engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=0')
     connection = engine.connect()
     connection.begin()
     return connection
@@ -57,4 +55,3 @@ class TestSqlAlchemy(unittest.TestCase):
         assert type(categorylinks.cl_to) == str
         assert type(categorylinks.cl_sortkey) == str
         assert categorylinks.cl_sortkey == 'ALT BĂ„RNBAD'
-
index 72929eaad131a141c0d1f10c59d4fcf37d3a036b..b06ba3407652da5ab26e6d5c9ce5a96e0e892aa2 100644 (file)
@@ -19,4 +19,3 @@ class TestWrMwDb(unittest.TestCase):
     def test_wrinncache_table(self):
         metadata = sqlalchemy.MetaData()
         wrinncache_table = wrpylib.wrmwdb.wrinncache_table(metadata)
-
index 01a51d5f27110e7b29bad8015e2497c0dbe5ef15..5e2699ee723cb555578c1844fc8f9515b0b027ea 100644 (file)
@@ -453,4 +453,3 @@ class TestWrMwMarkup(unittest.TestCase):
         </rodelbahn>
 
         </wrmap>''')
-
index 8f1c840413dd0686573a64c249eeda3fd9590c30..b36a59c4f97e99a36486eacf08f837ca06384ec9 100644 (file)
@@ -16,5 +16,3 @@ def dbkey_to_title(value):
     $this->mTextform = str_replace( '_', ' ', $this->mDbkeyform );
     No check for None because a missing title is an error."""
     return value.replace('_', ' ')
-
-
index 84093e486ac1c0bb0f3fa90470972d4e1153adb0..8e59d89763df39117f8002c57d7f8c0a088ce994 100644 (file)
@@ -91,4 +91,3 @@ def categorylinks_table(metadata):
     Column("cl_sortkey", types.String(convert_unicode='force'), nullable=False), # varbinary(230) NOT NULL
     Column("cl_timestamp", types.DateTime, nullable=False),
     )
-
index cb0608341344dc230fe27fe05f89f99992755f7f..12689c57beff134c53f9753a0c058874413c1f80 100644 (file)
@@ -242,4 +242,3 @@ def update_wrregioncache(connection):
 
     # commit
     transaction.commit()
-
index bcd9d34ced4eebb35134e9c9ae9700c7d8850031..ed2917f785cc18b5a9ae5b45a78c356f19c40c00 100644 (file)
@@ -160,4 +160,3 @@ def wrregioncache_table(metadata):
     Column("region_id", types.Integer, schema.ForeignKey('wrregin.id')),
     Column("page_id", types.Integer)
     )
-
index 5637a6b257811b91fec35aeed12396718e28bf69..c3df734ae5346a9c56facc817a3caa14305c2d23 100644 (file)
@@ -394,4 +394,3 @@ def create_wrmap(geojson):
     if last_json_feature is not None:
         last_json_feature.tail = '\n\n'
     return xml.etree.ElementTree.tostring(wrmap_xml, encoding='utf-8').decode('utf-8')
-