[pypy-commit] pypy refactor-str-types: Remove all "raise NotImplementedError"-methods in StringMethods.

Manuel Jacob noreply at buildbot.pypy.org
Wed Jul 24 21:09:29 CEST 2013


Author: Manuel Jacob
Branch: refactor-str-types
Changeset: r65625:8418bdebeade
Date: 2013-07-24 21:07 +0200
http://bitbucket.org/pypy/pypy/changeset/8418bdebeade/

Log:	Remove all "raise NotImplementedError"-methods in StringMethods.

diff --git a/pypy/objspace/std/stringmethods.py b/pypy/objspace/std/stringmethods.py
--- a/pypy/objspace/std/stringmethods.py
+++ b/pypy/objspace/std/stringmethods.py
@@ -12,18 +12,6 @@
 class StringMethods(object):
     _mixin_ = True
 
-    def _new(self, value):
-        raise NotImplementedError
-
-    def _len(self):
-        raise NotImplementedError
-
-    def _val(self, space):
-        raise NotImplementedError
-
-    def _op_val(self, space, w_other):
-        raise NotImplementedError
-
     def _sliced(self, space, s, start, stop, orig_obj):
         assert start >= 0
         assert stop >= 0
@@ -411,12 +399,6 @@
             sb.append(self._op_val(space, list_w[i]))
         return self._new(sb.build())
 
-    def _join_return_one(self, space, w_obj):
-        raise NotImplementedError
-
-    def _join_check_item(self, space, w_obj):
-        raise NotImplementedError
-
     def _join_autoconvert(self, space, list_w):
         assert False, 'unreachable'
 


More information about the pypy-commit mailing list