[gnome-news] Respect PEP 3127 octinteger syntax



commit fb882ec541012d98e8491823b96dcf36bacb1dbf
Author: Éloi Rivard <azmeuk gmail com>
Date:   Thu Jul 14 15:22:53 2016 +0200

    Respect PEP 3127 octinteger syntax
    
    PEP 3127 advise to add a 'o' in octintegers.
    
    Signed-off-by: Igor Gnatenko <ignatenko src gnome org>

 gnomenews/application.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomenews/application.py b/gnomenews/application.py
index 76a5452..91bb63d 100644
--- a/gnomenews/application.py
+++ b/gnomenews/application.py
@@ -57,7 +57,7 @@ class Application(Gtk.Application):
     @log
     def create_cache(self):
         if not os.path.isdir(CACHE_PATH):
-            GLib.mkdir_with_parents(CACHE_PATH, int("0755", 8))
+            GLib.mkdir_with_parents(CACHE_PATH, 0o0755)
 
     @log
     def do_startup(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]