Permalink
Browse files

Аргумент hasattr для атрибута д.б. строкой.

  • Loading branch information...
1 parent ee18a21 commit 0e757470e89774807ae68ba03cb54bdfbd9c46c3 @while0pass committed Jan 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mail_dumper.py
View
@@ -28,7 +28,7 @@ def check_output(*popenargs, **kwargs):
raise error
return output
-if not hasattr(subprocess, check_output):
+if not hasattr(subprocess, 'check_output'):
subprocess.check_output = check_output
output = subprocess.check_output('./dump.sh', shell=True)

0 comments on commit 0e75747

Please sign in to comment.