Skip to content

Commit 2c2c151

Browse files
author
James William Pye
committed
Dead code.
1 parent e23b361 commit 2c2c151

2 files changed

Lines changed: 0 additions & 37 deletions

File tree

postgresql/python/contextlib.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

postgresql/test/test_python.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from ..python.itertools import interlace
1313
from ..python.structlib import split_sized_data
14-
from ..python.contextlib import *
1514
from ..python import functools
1615
from ..python import itertools
1716
from ..python.socket import find_available_port
@@ -154,17 +153,6 @@ def testFindAvailable(self):
154153
finally:
155154
s.close()
156155

157-
class test_contextlib(unittest.TestCase):
158-
def testNoCM(self):
159-
with NoCM as foo:
160-
pass
161-
self.assertEqual(foo, None)
162-
self.assertEqual(NoCM(), NoCM)
163-
# has no state, may be used repeatedly
164-
with NoCM as foo:
165-
pass
166-
self.assertEqual(foo, None)
167-
168156
def join_sized_data(*data,
169157
packL = struct.Struct("!L").pack,
170158
getlen = lambda x: len(x) if x is not None else 0xFFFFFFFF

0 commit comments

Comments
 (0)