ratpmetro/main.py
def _twitter_account(self, line):
        """
        Return the official RATP twitter account
        """
        # Metro
        try:
            line_int = int(line)
            assert 1 <= line_int <= 14
            return f"Ligne{line_int:d}_RATP"
        except ValueError:
            # RER A or B
            if line == "A":
                return "RER_A"
            elif line == "B":
                return "RER_B"
            else:
                print('line must be a number between 1 and 14, "A", or "B".')
                return None

        Return the official RATP twitter account
        
Return the official RATP twitter account
Return the official RATP twitter account
def _twitter_account(self, line):
        try:
            line_int = int(line)
            assert 1 <= line_int <= 14
            return f"Ligne{line_int:d}_RATP"
        except ValueError:
            if line == "A":
                return "RER_A"
            elif line == "B":
                return "RER_B"
            else:
                print('line must be a number between 1 and 14, "A", or "B".')
                return None
def _twitter_account ( self , line ) : try : line_int = int ( line ) assert 1 <= line_int <= 14 return f"Ligne{line_int:d}_RATP" except ValueError : if line == "A" : return "RER_A" elif line == "B" : return "RER_B" else : print ( 'line must be a number between 1 and 14, "A", or "B".' ) return None
Return the official RATP twitter account
Return the official RATP twitter account
"""
        Return the official RATP twitter account
        """ # Metro # RER A or B
self
line