[pypy-commit] pypy remove-remaining-smm: Fix imports.
Manuel Jacob
noreply at buildbot.pypy.org
Mon Feb 24 04:16:28 CET 2014
Author: Manuel Jacob
Branch: remove-remaining-smm
Changeset: r69336:cc55e80e9b8a
Date: 2014-02-24 04:15 +0100
http://bitbucket.org/pypy/pypy/changeset/cc55e80e9b8a/
Log: Fix imports.
diff --git a/pypy/module/_csv/interp_reader.py b/pypy/module/_csv/interp_reader.py
--- a/pypy/module/_csv/interp_reader.py
+++ b/pypy/module/_csv/interp_reader.py
@@ -7,6 +7,7 @@
from pypy.module._csv.interp_csv import _build_dialect
from pypy.module._csv.interp_csv import (QUOTE_MINIMAL, QUOTE_ALL,
QUOTE_NONNUMERIC, QUOTE_NONE)
+from pypy.objspace.std.util import wrap_parsestringerror
(START_RECORD, START_FIELD, ESCAPED_CHAR, IN_FIELD,
IN_QUOTED_FIELD, ESCAPE_IN_QUOTED_FIELD, QUOTE_IN_QUOTED_FIELD,
@@ -48,7 +49,6 @@
try:
ff = string_to_float(field)
except ParseStringError as e:
- from pypy.objspace.std.intobject import wrap_parsestringerror
raise wrap_parsestringerror(space, e, space.wrap(field))
w_obj = space.wrap(ff)
else:
diff --git a/pypy/objspace/std/longobject.py b/pypy/objspace/std/longobject.py
--- a/pypy/objspace/std/longobject.py
+++ b/pypy/objspace/std/longobject.py
@@ -18,6 +18,7 @@
from pypy.objspace.std.model import (
BINARY_OPS, CMP_OPS, COMMUTATIVE_OPS, IDTAG_LONG)
from pypy.objspace.std.stdtypedef import StdTypeDef
+from pypy.objspace.std.util import wrap_parsestringerror
def delegate_other(func):
@@ -538,7 +539,6 @@
try:
bigint = rbigint.fromstr2(string, base)
except ParseStringError as e:
- from pypy.objspace.std.intobject import wrap_parsestringerror
raise wrap_parsestringerror(space, e, w_source)
return newbigint(space, w_longtype, bigint)
_string_to_w_long._dont_inline_ = True
More information about the pypy-commit
mailing list