import re
from lxml import etree


def new_ele(tag, attrs={}, **extra):
    etree.Element(tag, attrs, **extra)


def sub_ele(parent, tag, attrs={}, **extra):
    etree.SubElement(parent, tag, attrs, **extra)

# Globals
tag_pattern = re.compile(r'({.*})?(.*)')
whitespace_pattern = re.compile(r'[\n\r\s]+')

import re

# Globals
tag_pattern = re.compile(r'({.*})?(.*)')
whitespace_pattern = re.compile(r'[\n\r\s]+')

Remove new_ele() and sub_ele() functions
Remove new_ele() and sub_ele() functions

  import re
- from lxml import etree
- 
- 
- def new_ele(tag, attrs={}, **extra):
-     etree.Element(tag, attrs, **extra)
- 
- 
- def sub_ele(parent, tag, attrs={}, **extra):
-     etree.SubElement(parent, tag, attrs, **extra)
  
  # Globals
  tag_pattern = re.compile(r'({.*})?(.*)')
  whitespace_pattern = re.compile(r'[\n\r\s]+')
  
Remove new_ele() and sub_ele() functions
## Code Before:
import re
from lxml import etree


def new_ele(tag, attrs={}, **extra):
    etree.Element(tag, attrs, **extra)


def sub_ele(parent, tag, attrs={}, **extra):
    etree.SubElement(parent, tag, attrs, **extra)

# Globals
tag_pattern = re.compile(r'({.*})?(.*)')
whitespace_pattern = re.compile(r'[\n\r\s]+')

## Instruction:
Remove new_ele() and sub_ele() functions
## Code After:
import re

# Globals
tag_pattern = re.compile(r'({.*})?(.*)')
whitespace_pattern = re.compile(r'[\n\r\s]+')
