diff --git a/scripts/MakeHeader.py b/scripts/MakeHeader.py index a9a5f205..4841bdac 100755 --- a/scripts/MakeHeader.py +++ b/scripts/MakeHeader.py @@ -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