mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-15 21:40:19 -06:00
__defaults__ is available in py27
This commit is contained in:
@@ -5,14 +5,12 @@ import collections
|
||||
import contextlib
|
||||
import os
|
||||
|
||||
from pre_commit import five
|
||||
|
||||
|
||||
UNSET = collections.namedtuple('UNSET', ())()
|
||||
|
||||
|
||||
Var = collections.namedtuple('Var', ('name', 'default'))
|
||||
setattr(Var.__new__, five.defaults_attr, ('',))
|
||||
setattr(Var.__new__, '__defaults__', ('',))
|
||||
|
||||
|
||||
def format_env(parts, env):
|
||||
|
||||
Reference in New Issue
Block a user