From ce38b1cc4cd55e3acbc40e664e4ee473afa35b18 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 2 May 2016 16:12:13 +0200 Subject: pylint project 2 --- project2/proj2_s4498062/dns/rcodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'project2/proj2_s4498062/dns/rcodes.py') diff --git a/project2/proj2_s4498062/dns/rcodes.py b/project2/proj2_s4498062/dns/rcodes.py index a35482c..cff7a8f 100644 --- a/project2/proj2_s4498062/dns/rcodes.py +++ b/project2/proj2_s4498062/dns/rcodes.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python2 - """ DNS RCODE values This module contains an Enum of RCODE values. See section 4.1.4 of RFC 1035 for @@ -8,7 +6,7 @@ more info. class RCode(object): """ Enum of RCODE values - + Usage: >>> NoError 0 @@ -62,8 +60,10 @@ class RCode(object): @staticmethod def to_string(rcode): + """Convert a return code to a string""" return RCode.by_value[rcode] @staticmethod def from_string(string): + """Convert a string to a return code""" return RCode.by_string[string] -- cgit v1.2.3