mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Switch to io.StringIO
This commit is contained in:
parent
e3591cb7b8
commit
ca5ee87b16
2 changed files with 5 additions and 12 deletions
|
|
@ -20,10 +20,7 @@
|
|||
from argparse import ArgumentParser
|
||||
import os
|
||||
import logging
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
except:
|
||||
from StringIO import StringIO
|
||||
import io
|
||||
|
||||
import common
|
||||
import metadata
|
||||
|
|
@ -33,7 +30,7 @@ options = None
|
|||
|
||||
|
||||
def proper_format(app):
|
||||
s = StringIO()
|
||||
s = io.StringIO()
|
||||
# TODO: currently reading entire file again, should reuse first
|
||||
# read in metadata.py
|
||||
with open(app.metadatapath, 'r') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue