"""Specific support for getpass."""
import os
import getpass

from keyring.core import get_password as original_get_password

def get_password(prompt='Password: ', stream=None,
                 service_name='Python',
                 username=None):
    if username is None:
        username = getpass.getuser()
    return original_get_password(service_name, username)


"""Specific support for getpass."""
import os
import getpass

import keyring.core

def get_password(prompt='Password: ', stream=None,
                 service_name='Python',
                 username=None):
    if username is None:
        username = getpass.getuser()
    return keyring.core.get_password(service_name, username)


Use module namespaces to distinguish names instead of 'original_' prefix
Use module namespaces to distinguish names instead of 'original_' prefix

  """Specific support for getpass."""
  import os
  import getpass
  
- from keyring.core import get_password as original_get_password
+ import keyring.core
  
  def get_password(prompt='Password: ', stream=None,
                   service_name='Python',
                   username=None):
      if username is None:
          username = getpass.getuser()
-     return original_get_password(service_name, username)
+     return keyring.core.get_password(service_name, username)
  
  
Use module namespaces to distinguish names instead of 'original_' prefix
## Code Before:
"""Specific support for getpass."""
import os
import getpass

from keyring.core import get_password as original_get_password

def get_password(prompt='Password: ', stream=None,
                 service_name='Python',
                 username=None):
    if username is None:
        username = getpass.getuser()
    return original_get_password(service_name, username)


## Instruction:
Use module namespaces to distinguish names instead of 'original_' prefix
## Code After:
"""Specific support for getpass."""
import os
import getpass

import keyring.core

def get_password(prompt='Password: ', stream=None,
                 service_name='Python',
                 username=None):
    if username is None:
        username = getpass.getuser()
    return keyring.core.get_password(service_name, username)

