]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/ds1307/pd.py
license: remove FSF postal address from boiler plate license text
[libsigrokdecode.git] / decoders / ds1307 / pd.py
index cb5fc13207647582cac86b2fb6ae0adc62147e0e..9b7a21f90e60e10110d0d3ecf9d7ec85d3d58647 100644 (file)
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
 ##
 
 import re
 import sigrokdecode as srd
-from srdhelper import bcd2int
+from common.srdhelper import bcd2int
 
 days_of_week = (
     'Sunday', 'Monday', 'Tuesday', 'Wednesday',
@@ -75,7 +74,7 @@ class Decoder(srd.Decoder):
         ('warnings', 'Warnings', (28,)),
     )
 
-    def __init__(self, **kwargs):
+    def __init__(self):
         self.state = 'IDLE'
         self.hours = -1
         self.minutes = -1