Commit 726ded57 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Started attackign the next flake8 violation

parent a023a84c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
VERSION = (1, 7, 0, 'alpha', 0)


def get_version(*args, **kwargs):
    # Don't litter django/__init__.py with all the get_version stuff.
    # Only import if it's actually called.
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ import os
import pstats
import sys


def gather_stats(p):
    profiles = {}
    for f in os.listdir(p):
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
import os
import sys


def unique_messages():
    basedir = None

+3 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ handler403 = 'django.views.defaults.permission_denied'
handler404 = 'django.views.defaults.page_not_found'
handler500 = 'django.views.defaults.server_error'


def include(arg, namespace=None, app_name=None):
    if isinstance(arg, tuple):
        # callable returning a namespace hint
@@ -39,6 +40,7 @@ def include(arg, namespace=None, app_name=None):

    return (urlconf_module, app_name, namespace)


def patterns(prefix, *args):
    pattern_list = []
    for t in args:
@@ -49,6 +51,7 @@ def patterns(prefix, *args):
        pattern_list.append(t)
    return pattern_list


def url(regex, view, kwargs=None, name=None, prefix=''):
    if isinstance(view, (list, tuple)):
        # For include(...) processing.
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ from django.conf import settings
from django.conf.urls import patterns, url
from django.core.urlresolvers import LocaleRegexURLResolver


def i18n_patterns(prefix, *args):
    """
    Adds the language code prefix to every URL pattern within this
Loading