29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From b2c1f2874b08a0002bbdfac71b7631da1c3f3322 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
|
|
Date: Mon, 24 Sep 2018 12:10:42 +0200
|
|
Subject: [PATCH 06/16] compat: fix typo in compat tool that produces
|
|
"TypeError: 'int' object is not callable"
|
|
|
|
Resolves:
|
|
https://github.com/pbrezina/authselect/issues/92
|
|
---
|
|
src/compat/authcompat_EnvironmentFile.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/compat/authcompat_EnvironmentFile.py b/src/compat/authcompat_EnvironmentFile.py
|
|
index 5738c6cafaf75109a5c1dbb9d3f040686a4945e1..9c12f7c675fe29a76161f83e7fcaa06b3a3fab35 100644
|
|
--- a/src/compat/authcompat_EnvironmentFile.py
|
|
+++ b/src/compat/authcompat_EnvironmentFile.py
|
|
@@ -204,7 +204,7 @@ class EnvironmentFile:
|
|
i = value.find("\\", i)
|
|
if i < 0:
|
|
break
|
|
- if i + 1 >= length(value):
|
|
+ if i + 1 >= len(value):
|
|
value = value[0:i]
|
|
break
|
|
|
|
--
|
|
2.17.1
|
|
|