Code Duplication    Length = 12-13 lines in 2 locations

comics.py 2 locations

@@ 2981-2993 (lines=13) @@
2978
    name = 'woodenplank'
2979
    long_name = 'Wooden Plank Studios'
2980
    url = 'http://woodenplankstudios.com'
2981
2982
2983
class ElectricBunnyComic(GenericNavigableComic):
2984
    """Class to retrieve Electric Bunny Comics."""
2985
    # Also on http://electricbunnycomics.tumblr.com
2986
    name = 'bunny'
2987
    long_name = 'Electric Bunny Comic'
2988
    url = 'http://www.electricbunnycomics.com/View/Comic/153/Welcome+to+Hell'
2989
    get_url_from_link = join_cls_url_to_href
2990
2991
    @classmethod
2992
    def get_first_comic_link(cls):
2993
        """Get link to first comics."""
2994
        return get_soup_at_url(cls.url).find('img', alt='First').parent
2995
2996
    @classmethod
@@ 2674-2685 (lines=12) @@
2671
2672
2673
class CommitStripEn(GenericCommitStrip):
2674
    """Class to retrieve Commit Strips in English."""
2675
    name = 'commit_en'
2676
    long_name = 'Commit Strip (En)'
2677
    url = 'http://www.commitstrip.com/en'
2678
    first_url = 'http://www.commitstrip.com/en/2012/02/22/interview/'
2679
2680
2681
class GenericBoumerie(GenericNavigableComic):
2682
    """Generic class to retrieve Boumeries comics in different languages."""
2683
    get_first_comic_link = get_a_navi_navifirst
2684
    get_navi_link = get_link_rel_next
2685
    date_format = NotImplemented
2686
    lang = NotImplemented
2687
2688
    @classmethod