mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
make script version agnostic
This commit is contained in:
parent
09e241fb12
commit
60acda0bce
@ -2,8 +2,11 @@
|
||||
import os, sys, string
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
except:
|
||||
from StringIO import StringIO
|
||||
except ImportError:
|
||||
try:
|
||||
from StringIO import StringIO
|
||||
except ImportError:
|
||||
from io import StringIO
|
||||
|
||||
ANY=1
|
||||
COPY=2
|
||||
|
Loading…
Reference in New Issue
Block a user