Permalink
Browse files

Remove value parameter. Just use path.using_module(module)(value)

  • Loading branch information...
jaraco committed Nov 13, 2012
1 parent f5a11fa commit 5b07d610163d9b5983cb3af304d83668ab63d570
Showing with 2 additions and 4 deletions.
  1. +2 −4 path.py
View
@@ -83,7 +83,7 @@ class path(unicode):
module = os.path
_subclass_for_module = {}
@classmethod
- def using_module(cls, module, value=None):
+ def using_module(cls, module):
if module in cls._subclass_for_module:
subclass = cls._subclass_for_module[module]
else:
@@ -92,9 +92,7 @@ def using_module(cls, module, value=None):
ns = {'module': module}
subclass = type(subclass_name, bases, ns)
cls._subclass_for_module[module] = subclass
- if value is None:
- return subclass
- return subclass(value)
+ return subclass
# --- Special Python methods.

0 comments on commit 5b07d61

Please sign in to comment.