Facebook
From crisyelit, 3 Years ago, written in Plain Text.
This paste is a reply to error al git from crisyelit - go back
Embed
Viewing differences between error al git and valueEmail con python
jhuliana@jhuliana:~/proyecto_odoo13/Odoo13$ git remote add origin https://github.com/crisyelit/Odoo13.git
fatal: remoto origin ya existe.
jhuliana@jhuliana:~/proyecto_odoo13/Odoo13$ git push -u origin master
error: src refspec master does 
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re

archivo = open("mail.txt", "r")
resultado = open("destino.txt","a")
emails = [linea.strip() for linea in archivo]

body_regex = re.compile('''
    ^(?!\.)                            # name may 
not match any.
error: falló el push de algunas referencias 
begin with 'https://github.com/crisyelit/Odoo13.git'
jhuliana@jhuliana:~/proyecto_odoo13/Odoo13$ git pull
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
Desempaquetando objetos: 100% (6/6), listo.
Desde https://github.com/crisyelit/Odoo13
 * [nueva rama]      master     -> origin/master
jhuliana@jhuliana:~/proyecto_odoo13/Odoo13$ git status
En la rama master
Tu rama está actualizada con 'origin/master'.

Archivos sin seguimiento:
  (usa "git add ..." para incluirlo 
dot
    (
      [-a-z0-9!\#$%&'*+/=?^_`{|}~]     # all legal characters except dot
      |
      (?     )+
    (?lo que se será confirmado)

        openacademy/

no hay nada agregado al commit pero hay archivos sin seguimiento presentes (usa "git add" para hacerles seguimiento)
jhuliana@jhuliana:~/proyecto_odoo13/Odoo13$ git add openacademy/
jhuliana@jhuliana:~/proyecto_odoo13/Odoo13$ git commint -m "prueba de odoo13"
git: 'commint'no es un comando de git. Mira 'git --help'.

El comando mas similar es
        commit
jhuliana@jhuliana:~/proyecto_odoo13/Odoo13$ git remote add origin ^C
jhuliana@jhuliana:~/proyecto_odoo13/Odoo13$ git remote add origin https://github.com/crisyelit/Odoo13.git
fatal: remoto origin ya existe.
dot
''', re.VERBOSE | re.IGNORECASE)
domain_regex = re.compile('''
    (
      localhost
      |
      (
        [a-z0-9]
            # [sub]domain begins with alphanumeric
        (
          [-\w]*                         # alphanumeric, underscore, dot, hyphen
          [a-z0-9]                       # ending alphanumeric
        )?
      \.                               # ending dot
      )+
      [a-z]{2,}                        # TLD alpha-only
   )$
''', re.VERBOSE | re.IGNORECASE)

def is_valid_email(email):
    if not isinstance(email, str) or not email or '@' not in email:
        return False
    
    body, domain = email.rsplit('@', 1)

    match_body = body_regex.match(body)
    match_domain = domain_regex.match(domain)

    if not match_domain:
        # check for Internationalized Domain Names
        # see https://docs.python.org/2/library/codecs.html#module-encodings.idna
        try:
            domain_encoded = domain.encode('idna').decode('ascii')
        except UnicodeError:
            return False
        match_domain = domain_regex.match(domain_encoded)

    return (match_body is not None) and (match_domain is not None)

for email in emails:
  emails = list()
  if is_valid_email(email)  and not email in emails:
    emails.append(email)
    resultado.write(email + '\n')

resultado.close()
archivo.close()

Replies to valueEmail con python rss

Title Name Language When
valueEmail con python crisyelit text 3 Years ago.