Skip to content

Commit f11d325

Browse files
committed
remove Python 2.6 compatibility code
1 parent aa6cbe2 commit f11d325

8 files changed

Lines changed: 1 addition & 19 deletions

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Paviot, Thomas (tpaviot)
1919
Pictor, Mark (mpictor)
2020
Reed, Nick (nickreed)
2121
Shah, Kesha (kesha, keshashah)
22+
Sparks, Devon (devonsparks)
2223
Thomas, Dawn (homovulgaris, madant)
2324
Wouters, Dave (davyw)
2425
Yapp, Clifford (starseeker)

src/exp2python/python/SCL/BaseType.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
32
# All rights reserved.
43

src/exp2python/python/SCL/Model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
# Copyright (c) 2011-2012, Thomas Paviot (tpaviot@gmail.com)
32
# All rights reserved.
43

src/exp2python/python/SCL/Part21.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@
4141
from ply.lex import LexError
4242

4343
logger = logging.getLogger(__name__)
44-
45-
# ensure Python 2.6 compatibility
46-
if not hasattr(logging, 'NullHandler'):
47-
class NullHandler(logging.Handler):
48-
def handle(self, record):
49-
pass
50-
def emit(self, record):
51-
pass
52-
def createLock(self):
53-
self.lock = None
54-
55-
setattr(logging, 'NullHandler', NullHandler)
56-
5744
logger.addHandler(logging.NullHandler())
5845

5946
####################################################################################################

src/exp2python/python/SCL/SimpleDataTypes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"""
3333
Docstrings are courtesy of ISO 10303-11:1994(E)
3434
"""
35-
from __future__ import print_function
3635

3736
class NUMBER:
3837
"""

src/exp2python/python/SCL/TypeChecker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
# Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
32
# All rights reserved.
43

src/exp2python/python/SCL/Utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131

3232
''' This module provide string utils'''
33-
from __future__ import print_function
3433

3534
def process_nested_parent_str(attr_str,idx=0):
3635
'''

src/exp2python/python/SCL/essa_par.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
def process_nested_parent_str(attr_str):
32
'''
43
The first letter should be a parenthesis

0 commit comments

Comments
 (0)