def _make_specloader():
 def to_unicode(s, encoding=None):
  '\n        Raises a TypeError exception if the given string is already unicode.\n\n        '
  if (encoding is None):
   encoding = 'ascii'
  return unicode(s, encoding, 'strict')
 loader = Loader(file_encoding='ascii', to_unicode=to_unicode)
 return SpecLoader(loader=loader)

def _make_specloader ( ) : def to_unicode ( s , encoding = None ) : if ( encoding is None ) : encoding = 'ascii' return unicode ( s , encoding , 'strict' ) loader = Loader ( file_encoding = 'ascii' , to_unicode = to_unicode ) return SpecLoader ( loader = loader )
return a default specloader instance for testing purposes .