Permalink
Browse files

Cleanup

  • Loading branch information...
1 parent 1c33e60 commit 4a321b4f19e8e9c3b2f4bef80032e18371e7089d @csev committed Jan 3, 2017
Showing with 4 additions and 7 deletions.
  1. +0 −2 code3/gmane/gbasic.py
  2. +1 −2 code3/gmane/gline.py
  3. +2 −0 code3/gmane/gmane.py
  4. +1 −2 code3/gmane/gmodel.py
  5. +0 −1 code3/gmane/gword.py
@@ -1,6 +1,5 @@
import sqlite3
import time
-import urllib.request, urllib.parse, urllib.error
import zlib
howmany = int(input("How many to dump? "))
@@ -51,4 +50,3 @@
for k in x[:howmany]:
print(k, sendorgs[k])
if sendorgs[k] < 10 : break
-
@@ -1,6 +1,5 @@
import sqlite3
import time
-import urllib.request, urllib.parse, urllib.error
import zlib
conn = sqlite3.connect('index.sqlite')
@@ -45,7 +44,7 @@
if month not in months : months.append(month)
key = (month, dns)
counts[key] = counts.get(key,0) + 1
-
+
months.sort()
# print counts
# print months
@@ -90,6 +90,7 @@ def parsemaildate(md) :
fail = 0
while True:
if ( many < 1 ) :
+ conn.commit()
sval = input('How many messages:')
if ( len(sval) < 1 ) : break
many = int(sval)
@@ -184,4 +185,5 @@ def parsemaildate(md) :
if count % 50 == 0 : conn.commit()
if count % 100 == 0 : time.sleep(1)
+conn.commit()
cur.close()
@@ -1,13 +1,12 @@
import sqlite3
import time
-import urllib.request, urllib.parse, urllib.error
import re
import zlib
from datetime import datetime, timedelta
# Not all systems have this
try:
- import dateutil.parser as parser
+ import dateutil.parser as parser
except:
pass
@@ -1,6 +1,5 @@
import sqlite3
import time
-import urllib.request, urllib.parse, urllib.error
import zlib
import string

0 comments on commit 4a321b4

Please sign in to comment.