vi:si:et:sw=4:sts=4:ts=4

This commit is contained in:
j 2008-06-19 11:21:21 +02:00
parent dafe20aa04
commit 4a6e2702b4
11 changed files with 921 additions and 921 deletions

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
# 2008
from hashes import *

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
# 2008
import gzip
import StringIO

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
import math
import re
@ -51,7 +51,6 @@ def floatValue(strValue, default=''):
return val
def test_floatValue():
print "floatValue"
assert floatValue('abc23.4') == '23.4'
assert floatValue(' abc23.4') == '23.4'
assert floatValue(' abc') == ''

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
# GPL written 2008 by j@pad.ma
import sha
import os

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
# GPL written 2008 by j@pad.ma
import re
import string

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
_iso639_languages = [

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
import gzip
import StringIO
import urllib

View file

@ -1,6 +1,6 @@
# -*- Mode: Python; -*-
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
import re
_articles = ('the', 'la', 'a', 'die', 'der', 'le', 'el',

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
# GPL written 2008 by j@pad.ma
import re
@ -168,13 +168,13 @@ def normalizeNewlines(text):
def recapitalize(text):
"Recapitalizes text, placing caps after end-of-sentence punctuation."
# capwords = ()
#capwords = ()
text = text.lower()
capsRE = re.compile(r'(?:^|(?<=[\.\?\!] ))([a-z])')
text = capsRE.sub(lambda x: x.group(1).upper(), text)
# for capword in capwords:
# capwordRE = re.compile(r'\b%s\b' % capword, re.I)
# text = capwordRE.sub(capword, text)
#for capword in capwords:
# capwordRE = re.compile(r'\b%s\b' % capword, re.I)
# text = capwordRE.sub(capword, text)
return text
def phone2numeric(phone):

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
# Written 2007 by j@mailb.org
from threading import Event

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python
# vi:si:et:sw=2:sts=2:ts=2
# vi:si:et:sw=4:sts=4:ts=4
# encoding: utf-8
from setuptools import setup, find_packages
@ -26,5 +26,5 @@ setup(
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
)