mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Switch to io.StringIO
This commit is contained in:
parent
e3591cb7b8
commit
ca5ee87b16
2 changed files with 5 additions and 12 deletions
|
|
@ -23,11 +23,7 @@ import re
|
|||
import glob
|
||||
import cgi
|
||||
import textwrap
|
||||
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
except:
|
||||
from StringIO import StringIO
|
||||
import io
|
||||
|
||||
import yaml
|
||||
# use libyaml if it is available
|
||||
|
|
@ -513,8 +509,8 @@ class DescriptionFormatter:
|
|||
self.laststate = self.stNONE
|
||||
self.text_html = ''
|
||||
self.text_txt = ''
|
||||
self.html = StringIO()
|
||||
self.text = StringIO()
|
||||
self.html = io.StringIO()
|
||||
self.text = io.StringIO()
|
||||
self.para_lines = []
|
||||
self.linkResolver = None
|
||||
self.linkResolver = linkres
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue