diff options
author | Camil Staps | 2016-05-02 16:12:13 +0200 |
---|---|---|
committer | Camil Staps | 2016-05-02 16:12:13 +0200 |
commit | ce38b1cc4cd55e3acbc40e664e4ee473afa35b18 (patch) | |
tree | e13341cfee008f1c465b52abe441b7ade31a4505 /project2/proj2_s4498062/dns/rcodes.py | |
parent | dos2unix (diff) |
pylint project 2
Diffstat (limited to 'project2/proj2_s4498062/dns/rcodes.py')
-rw-r--r-- | project2/proj2_s4498062/dns/rcodes.py | 6 |
1 files changed, 3 insertions, 3 deletions
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] |