Permalink
Browse files

STY leading _ on private function

  • Loading branch information...
1 parent f5ae474 commit 4376d96dbe150b2645ff2226e247462fef42d96f @larsmans larsmans committed May 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 scipy/sparse/data.py
View
@@ -77,7 +77,7 @@ def _mul_scalar(self, other):
np.deg2rad, np.rad2deg, np.floor, np.ceil, np.trunc]:
name = npfunc.__name__
- def create_method(op):
+ def _create_method(op):
def method(self):
result = op(self.data)
x = self._with_data(result, copy=True)
@@ -89,4 +89,4 @@ def method(self):
return method
- setattr(_data_matrix, name, create_method(npfunc))
+ setattr(_data_matrix, name, _create_method(npfunc))

0 comments on commit 4376d96

Please sign in to comment.