removed ridiculous line length limit

This commit is contained in:
mitsuhiko 2007-10-23 12:21:48 +02:00
parent c4fa47c1ff
commit 0a13e78427

View File

@ -46,11 +46,6 @@ class PasteController(BaseController):
#self.app.antispam.is_spam(code, language)
if spam:
error = 'contains spam'
for line in code.splitlines():
if len(line) > MAX_LINE_LENGTH:
error = ('your paste contains lines longer than %d '
'chars') % MAX_LINE_LENGTH
break
if code and language and not error:
paste = Paste(code, language, parent, self.request.user_hash)
self.dbsession.save(paste)