summaryrefslogtreecommitdiff
path: root/rdiff-backup/src/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'rdiff-backup/src/connection.py')
-rw-r--r--rdiff-backup/src/connection.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/rdiff-backup/src/connection.py b/rdiff-backup/src/connection.py
index a92cab8..deff577 100644
--- a/rdiff-backup/src/connection.py
+++ b/rdiff-backup/src/connection.py
@@ -40,11 +40,7 @@ class LocalConnection(Connection):
def __getattr__(self, name):
try: return globals()[name]
except KeyError:
- builtins = globals()["__builtins__"]
- try:
- if type(builtins) is types.ModuleType:
- return builtins.__dict__[name]
- else: return builtins[name]
+ try: return __builtins__.__dict__[name]
except KeyError: raise NameError, name
def __setattr__(self, name, value):