'Cause only Windows before 1998 does not support link?

Le jeudi 25 juillet 2013, Jonathan Frederic a écrit :

> In IPython/utils/path.py:
>
> > @@ -510,3 +513,50 @@ def get_security_file(filename, profile='default'):
> >          raise IOError("Profile %r not found")
> >      return filefind(filename, ['.', pd.security_dir])
> >
> > +
> > +def link(src, dst):
> > +    """Hard links ``src`` to ``dst``, returning 0 or errno.
> > +
> > +    Note that the special errno ``1998`` will be returned if ``os.link`` isn't
> > +    supported by the operating system.
> > +    """
> > +
> > +    if not hasattr(os, "link"):
> > +        return 1998
>
> Lol
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ipython/ipython/pull/3751/files#r5395404>
> .
>