mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-05 19:07:06 +03:00
Merge pull request #659 from guoci/patch-1
make script version agnostic
This commit is contained in:
commit
4300a19592
@ -2,8 +2,11 @@
|
|||||||
import os, sys, string
|
import os, sys, string
|
||||||
try:
|
try:
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
except:
|
except ImportError:
|
||||||
from StringIO import StringIO
|
try:
|
||||||
|
from StringIO import StringIO
|
||||||
|
except ImportError:
|
||||||
|
from io import StringIO
|
||||||
|
|
||||||
ANY=1
|
ANY=1
|
||||||
COPY=2
|
COPY=2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user