From d8388b768b556d0b2029b9226457e7af8835d661 Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Wed, 6 Jul 2016 19:58:59 +0200 Subject: [PATCH] Move deprecated function --- NIST/traditional/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NIST/traditional/__init__.py b/NIST/traditional/__init__.py index 8800772..fe55f30 100644 --- a/NIST/traditional/__init__.py +++ b/NIST/traditional/__init__.py @@ -61,10 +61,6 @@ class NIST( object ): # ############################################################################ - @deprecated( "user the read() function instead" ) - def loadFromFile( self, infile ): - return self.read( infile ) - def read( self, infile ): """ Open the 'infile' file and transmit the data to the 'load' function. @@ -727,6 +723,10 @@ class NIST_deprecated( NIST ): compatibility). To use it, load the NISTf_deprecated class instead of the NISTf super class. """ + @deprecated( "user the read() function instead" ) + def loadFromFile( self, infile ): + return self.read( infile ) + @deprecated( "use the write() function instead" ) def saveToFile( self, outfile ): return self.write( outfile ) -- GitLab