diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/mnemonic/mnemonic.py b/mnemonic/mnemonic.py
index <HASH>..<HASH> 100644
--- a/mnemonic/mnemonic.py
+++ b/mnemonic/mnemonic.py
@@ -24,7 +24,7 @@
import struct
import binascii
import os
-from Crypto.Cipher import Blowfish
+from pyblowfish import Blowfish
class Mnemonic(object):
def __init__(self, lan... | Using pyblowfish, removed pycrypto dependency | py |
diff --git a/test/unit/test_upgrade.py b/test/unit/test_upgrade.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_upgrade.py
+++ b/test/unit/test_upgrade.py
@@ -66,6 +66,21 @@ class TestUpgrade(object):
def teardown_method(self, method):
self.mox.UnsetStubs()
+ @pytest.mark.parametrize('cmd,expecte... | Unit test for deprecated args | py |
diff --git a/setup/brython/make_package.py b/setup/brython/make_package.py
index <HASH>..<HASH> 100644
--- a/setup/brython/make_package.py
+++ b/setup/brython/make_package.py
@@ -70,7 +70,7 @@ def make(package_name, package_path, exclude_dirs=None, output_path=None):
for filename in filenames:
n... | Fixes #<I> : commit db2f2a5 makes it impossible to include Brython modules implemented in JavaScript into a package | py |
diff --git a/reana_db/version.py b/reana_db/version.py
index <HASH>..<HASH> 100755
--- a/reana_db/version.py
+++ b/reana_db/version.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of REANA.
-# Copyright (C) 2018 CERN.
+# Copyright (C) 2018, 2019 CERN.
#
# REANA is free software; you can redistribu... | release: <I>.de<I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -172,7 +172,7 @@ texinfo_documents = [
]
repo = "https://raw.githubusercontent.com/tendermint/tools/"
-branch = "cleanup-and-move-docs"
+branch = "master"
tools = "./tools"
assets = tools + "/assets" | docs: pull from tools' master branch | py |
diff --git a/pyqg/layered_model.py b/pyqg/layered_model.py
index <HASH>..<HASH> 100644
--- a/pyqg/layered_model.py
+++ b/pyqg/layered_model.py
@@ -127,10 +127,10 @@ class LayeredModel(model.Model):
self.rd = rd
self.delta = delta
self.nz = nz
- self.U = np.array(U)
- self.V = np... | Makes set of some of background variable already in init; no need to have both U and Ubg, etc | py |
diff --git a/GPy/util/__init__.py b/GPy/util/__init__.py
index <HASH>..<HASH> 100644
--- a/GPy/util/__init__.py
+++ b/GPy/util/__init__.py
@@ -6,7 +6,6 @@ from . import linalg
from . import misc
from . import squashers
from . import warping_functions
-from . import datasets
from . import mocap
from . import decora... | Don't import datasets by default since it is almost never needed | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -646,7 +646,7 @@ class Zotero(object):
"The file at %s couldn't be opened or found." %
templt[u'filename'])
- def create_prelim... | Explicitly pass parentid into create_prelim This will make matters less confusing when you look at the code again next year | py |
diff --git a/twip/scripts/generate.py b/twip/scripts/generate.py
index <HASH>..<HASH> 100644
--- a/twip/scripts/generate.py
+++ b/twip/scripts/generate.py
@@ -43,7 +43,7 @@ def count_words(df, num_tweets=1000000, verbosity=1):
break
text = row.text if isinstance(row.text, basestring) and row.text ... | some text isnan so must skip and not try len either | py |
diff --git a/tests/test_config.py b/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -4,6 +4,11 @@
from nose.tools import assert_raises
from flask import Flask, Module
from flaskext.assets import Environment, Bundle
+from webassets.updater import BaseUpdater
+... | Make the tests work with latest webassets trunk. | py |
diff --git a/agon/models.py b/agon/models.py
index <HASH>..<HASH> 100644
--- a/agon/models.py
+++ b/agon/models.py
@@ -41,6 +41,16 @@ class TargetPointTotal(models.Model):
class Meta:
unique_together = [("target_content_type", "target_object_id")]
+
+ @classmethod
+ def full_calculate(cls)... | stubbed out TargetPointTotal.full_calculate | py |
diff --git a/inginious/frontend/pages/course_admin/audience_edit.py b/inginious/frontend/pages/course_admin/audience_edit.py
index <HASH>..<HASH> 100644
--- a/inginious/frontend/pages/course_admin/audience_edit.py
+++ b/inginious/frontend/pages/course_admin/audience_edit.py
@@ -100,7 +100,7 @@ class CourseEditAudience(... | [admin/audiences] bypass registration settings if admin | py |
diff --git a/indra/sources/sparser/processor.py b/indra/sources/sparser/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/sparser/processor.py
+++ b/indra/sources/sparser/processor.py
@@ -241,6 +241,21 @@ def fix_json_stmt(json_stmt):
raise MissingSubj
# Change to IncreaseAmount
... | Handle evidence text and PMID issues | py |
diff --git a/asv/plugins/virtualenv.py b/asv/plugins/virtualenv.py
index <HASH>..<HASH> 100644
--- a/asv/plugins/virtualenv.py
+++ b/asv/plugins/virtualenv.py
@@ -59,9 +59,13 @@ class Virtualenv(environment.Environment):
@classmethod
def get_environments(cls, conf, python):
- executable = util.which(... | Turn missing Python version back into a warning | py |
diff --git a/pyqode/core/modes/code_completion.py b/pyqode/core/modes/code_completion.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/modes/code_completion.py
+++ b/pyqode/core/modes/code_completion.py
@@ -198,11 +198,6 @@ class CodeCompletionMode(Mode, QtCore.QObject):
if is_shortcut:
self.reque... | Small improvement to the code completion popup | py |
diff --git a/pyy/html/pyy_tag.py b/pyy/html/pyy_tag.py
index <HASH>..<HASH> 100644
--- a/pyy/html/pyy_tag.py
+++ b/pyy/html/pyy_tag.py
@@ -295,7 +295,7 @@ class pyy_tag(object):
# Workaround for python's reserved words
if attribute[0] == '_': attribute = attribute[1:]
# Workaround for inability to use co... | Whoops. Not converted to a hyphen yet. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,13 +2,18 @@
#
from distutils.core import setup
from ginga.version import version
+import os
+
+def read(fname):
+ return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "Ginga",
... | Fixed setup.py script to include license file modified: setup.py | py |
diff --git a/openquake/calculators/ucerf_event_based.py b/openquake/calculators/ucerf_event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/ucerf_event_based.py
+++ b/openquake/calculators/ucerf_event_based.py
@@ -31,7 +31,6 @@ import numpy
from openquake.baselib.general import AccumDict
from openq... | Fixed a memory issue in ucerf_rupture Former-commit-id: dbbdb<I>c<I>fd<I>dcc7d<I>b9d2a<I>fbdd<I> | py |
diff --git a/spyder/plugins/editor/widgets/tests/test_introspection.py b/spyder/plugins/editor/widgets/tests/test_introspection.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/tests/test_introspection.py
+++ b/spyder/plugins/editor/widgets/tests/test_introspection.py
@@ -304,6 +304,13 @@ def test_com... | Prevent label mangling for completion test | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -8,9 +8,9 @@ Run it by
"""
from django.core.management import call_command
from mock import DEFAULT, patch
-from os import environ, linesep as LF
+from os import linesep as LF
from subprocess import PIPE, Popen
-import dja... | Make tests work with Django <I>, <I>, <I> | py |
diff --git a/wagtailmenus/views.py b/wagtailmenus/views.py
index <HASH>..<HASH> 100644
--- a/wagtailmenus/views.py
+++ b/wagtailmenus/views.py
@@ -56,9 +56,12 @@ class MenuTabbedInterfaceMixin:
])
return edit_handler.bind_to_model(self.model)
- def get_edit_handler_class(self):
- # For... | Use wagtail.admin.messages.validation_error() in form_invalid, so that we can have nice validation error handling in all menu editing views | py |
diff --git a/salt/renderers/pass.py b/salt/renderers/pass.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/pass.py
+++ b/salt/renderers/pass.py
@@ -71,7 +71,7 @@ def _fetch_secret(pass_path):
Fetch secret from pass based on pass_path. If there is
any error, return back the original pass_path value
"""... | Remove leading/trailing whitespace from secret Pass adds a newline, which causes auth problems. | py |
diff --git a/openquake/commonlib/export/hazard.py b/openquake/commonlib/export/hazard.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/export/hazard.py
+++ b/openquake/commonlib/export/hazard.py
@@ -149,6 +149,7 @@ def export_ses_csv(ekey, dstore):
rows.append(
(eta... | Sorted the ruptures by etag Former-commit-id: <I>e<I>ec<I>ec<I>b<I>d<I>bf<I>cc<I>a2 | py |
diff --git a/tests/integration/modules/test_win_pkg.py b/tests/integration/modules/test_win_pkg.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/test_win_pkg.py
+++ b/tests/integration/modules/test_win_pkg.py
@@ -76,6 +76,7 @@ class WinPKGTest(ModuleCase):
reboot: False
... | Try running fsync to avoid fs caching race condition | py |
diff --git a/benchexec/test_runexecutor.py b/benchexec/test_runexecutor.py
index <HASH>..<HASH> 100644
--- a/benchexec/test_runexecutor.py
+++ b/benchexec/test_runexecutor.py
@@ -415,7 +415,7 @@ class TestRunExecutor(unittest.TestCase):
(result, output) = self.execute_run('/bin/cat', '/proc/self/cgroup')
... | fix test if in root cgroup | py |
diff --git a/openquake/baselib/workerpool.py b/openquake/baselib/workerpool.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/workerpool.py
+++ b/openquake/baselib/workerpool.py
@@ -154,7 +154,7 @@ class WorkerPool(object):
"""
:param sock: a zeromq.Socket of kind PULL receiving (cmd, args)
... | Cleanup [skip CI] | py |
diff --git a/tests/unit/grains/test_core.py b/tests/unit/grains/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/unit/grains/test_core.py
+++ b/tests/unit/grains/test_core.py
@@ -889,4 +889,5 @@ SwapTotal: 4789244 kB'''
ret = {'fqdns': ['bluesniff.foo.bar', 'foo.bar.baz', 'rinzler.evil-corp.com']}
... | Switch to assertCountEqual since order can change Since the order of the list in the dict can change, the assertEqual might fail. assertCountEqual not only checks the count, it also checks for matching elements regardless of the order. assertCountEqual is Python=><I>. | py |
diff --git a/littletable.py b/littletable.py
index <HASH>..<HASH> 100644
--- a/littletable.py
+++ b/littletable.py
@@ -348,8 +348,7 @@ class _UniqueObjIndex(_ObjIndex):
def _clear(self):
self.obs.clear()
- self.none_values.clear()
- self.none_values.clear()
+ del self.none_values[:]... | Pre Py3 lists don't support clear(), use del list[:] | py |
diff --git a/tests/test_wormbase.py b/tests/test_wormbase.py
index <HASH>..<HASH> 100644
--- a/tests/test_wormbase.py
+++ b/tests/test_wormbase.py
@@ -38,6 +38,7 @@ class WormBaseTestCase(unittest.TestCase):
def setUp(self):
self.wormbase = WormBase('rdf_graph', True)
self.wormbase.graph = RDFGra... | test gets it own hardcoded map | py |
diff --git a/chains/sources/packet_streamer.py b/chains/sources/packet_streamer.py
index <HASH>..<HASH> 100644
--- a/chains/sources/packet_streamer.py
+++ b/chains/sources/packet_streamer.py
@@ -121,5 +121,11 @@ def test():
for packet in streamer.output_stream:
print(packet)
+ # Test BPF Filter
+ ... | add a test for the BPF Filter on packet streamer | py |
diff --git a/abilian/core/entities.py b/abilian/core/entities.py
index <HASH>..<HASH> 100644
--- a/abilian/core/entities.py
+++ b/abilian/core/entities.py
@@ -230,12 +230,15 @@ class Entity(BaseMixin, db.Model):
Sqlalchemy does not support multi-level inheritance)
"""
__metaclass__ = EntityMeta
- __mapper_arg... | entities: added entity_class property, don't set up mapper with polymorphic '*' by default (seems imposible to alterate when using relationships to Entity) | py |
diff --git a/src/binwalk/plugins/compressd.py b/src/binwalk/plugins/compressd.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/plugins/compressd.py
+++ b/src/binwalk/plugins/compressd.py
@@ -12,9 +12,9 @@ class CompressdPlugin(binwalk.core.plugin.Plugin):
READ_SIZE = 64
COMPRESS42 = "compress42"
- COMPRE... | Patch to prevent the currently unused compressd.py plugin from invoking ctypes | py |
diff --git a/findimports.py b/findimports.py
index <HASH>..<HASH> 100755
--- a/findimports.py
+++ b/findimports.py
@@ -58,6 +58,7 @@ import os
import sys
import sets
import getopt
+import doctest
import compiler
import linecache
from compiler import ast
@@ -95,6 +96,23 @@ class ImportFinder(ASTVisitor):
... | Look for imports/usage inside docstrings too. Originally committed <I>-<I>-<I> <I>:<I>:<I> <I> to a different SVN repository (python-tools) as revision <I>. | py |
diff --git a/flask_unchained/__init__.py b/flask_unchained/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_unchained/__init__.py
+++ b/flask_unchained/__init__.py
@@ -35,4 +35,4 @@ from .bundles.controller.utils import redirect, url_for
# aliases
-from flask import current_app
+from flask import current_app, g... | alias a few useful globals from flask into the flask_unchained package | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,9 +2,6 @@ import os
import platform
from setuptools import setup
-data_files = []
-data_files.append(('webview/lib', ['webview/lib/WebBrowserInterop.x64.dll', 'webview/lib/WebBrowserInterop.x86.dll']))
-
if pl... | Fix pip installation (for realz) | py |
diff --git a/meshio/vtk/_vtk.py b/meshio/vtk/_vtk.py
index <HASH>..<HASH> 100644
--- a/meshio/vtk/_vtk.py
+++ b/meshio/vtk/_vtk.py
@@ -662,11 +662,10 @@ def _write_cells(f, cells, binary):
for c in cells.values():
n = c.shape[1]
# prepend a column with the value n
- out = n... | big vtk ascii writer improvement | py |
diff --git a/nion/swift/test/Storage_test.py b/nion/swift/test/Storage_test.py
index <HASH>..<HASH> 100644
--- a/nion/swift/test/Storage_test.py
+++ b/nion/swift/test/Storage_test.py
@@ -4021,7 +4021,7 @@ class TestStorageClass(unittest.TestCase):
with document_model.ref():
# for corrupt/m... | Fix utc date issue in test. | py |
diff --git a/src/com/dtmilano/android/viewclient.py b/src/com/dtmilano/android/viewclient.py
index <HASH>..<HASH> 100644
--- a/src/com/dtmilano/android/viewclient.py
+++ b/src/com/dtmilano/android/viewclient.py
@@ -1952,6 +1952,9 @@ class ViewClient:
raise RuntimeError('''ERROR: Some emulator images (i... | Throw an error when the screen is refreshed too frequently to dump <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ config = {
'author_email': 'info@opentrons.com',
'url': 'http://opentrons.com',
'version': '0.4',
- 'install_requires': ['pyyaml', 'serial'],
+ 'install_requires': ['pyyaml', 'pyserial'],
... | Why do people put py in front of package names? | py |
diff --git a/chess/pgn.py b/chess/pgn.py
index <HASH>..<HASH> 100644
--- a/chess/pgn.py
+++ b/chess/pgn.py
@@ -1354,10 +1354,10 @@ def read_game(handle: TextIO, *, Visitor: Any = GameBuilder) -> Any:
By using text mode, the parser does not need to handle encodings. It is the
caller's responsibility to open ... | User does not have to handle BOM anymore | py |
diff --git a/django_extensions/management/commands/sqldiff.py b/django_extensions/management/commands/sqldiff.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/sqldiff.py
+++ b/django_extensions/management/commands/sqldiff.py
@@ -176,6 +176,11 @@ to check/debug ur models compared to the real da... | exception for sqlite where varchar's are equal to chars (use case was IPAddresField) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ with open('README.rst') as readme:
setup(
name='edx-django-sites-extensions',
- version='2.2.0',
+ version='2.3.0',
description='Custom extensions for the Django sites framework',
long_de... | Updated to version <I> | py |
diff --git a/Code/Version1.2.mf/cannon/dataset.py b/Code/Version1.2.mf/cannon/dataset.py
index <HASH>..<HASH> 100644
--- a/Code/Version1.2.mf/cannon/dataset.py
+++ b/Code/Version1.2.mf/cannon/dataset.py
@@ -8,8 +8,7 @@ Methods
remove_stars
"""
-from __future__ import (absolute_import, division, print_function,
- ... | Unicode with numpy sucks! | py |
diff --git a/chess/svg.py b/chess/svg.py
index <HASH>..<HASH> 100644
--- a/chess/svg.py
+++ b/chess/svg.py
@@ -180,7 +180,7 @@ def board(board: Optional[chess.BaseBoard] = None, *,
square is drawn as a circle, like ``[(chess.E2, chess.E2)]``.
:param size: The size of the image in pixels (e.g., ``400`` for... | Fix a docstring (#<I>) Fix the docstring of board(), specifically the argument colors. | py |
diff --git a/pipe2py/compile.py b/pipe2py/compile.py
index <HASH>..<HASH> 100644
--- a/pipe2py/compile.py
+++ b/pipe2py/compile.py
@@ -354,6 +354,9 @@ if __name__ == '__main__':
"-p", "--pipe", dest="pipeid", help="read pipe JSON from Yahoo",
metavar="PIPEID")
parser.add_option(
+ "-c", "-... | Add option to set the compiled file output path | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -411,7 +411,9 @@ class RequestHandler(object):
To write the output to the network, use the flush() method below.
If the given chunk is a dictionary, we write it as JSON and set
- ... | Use the standard mime type application/json when producing json output | py |
diff --git a/plex/objects/library/metadata/season.py b/plex/objects/library/metadata/season.py
index <HASH>..<HASH> 100644
--- a/plex/objects/library/metadata/season.py
+++ b/plex/objects/library/metadata/season.py
@@ -3,9 +3,10 @@ from plex.objects.library.container import ChildrenContainer
from plex.objects.library.... | Added support for ratings on `Season` objects | py |
diff --git a/udata/commands/__init__.py b/udata/commands/__init__.py
index <HASH>..<HASH> 100644
--- a/udata/commands/__init__.py
+++ b/udata/commands/__init__.py
@@ -25,6 +25,7 @@ manager = Manager()
# Tell wether or not you can prompt user
IS_INTERACTIVE = sys.__stdin__.isatty()
+WITH_COLORS = sys.stdout.isatty()... | Proper ANSI colors support (disabled when piped or redirected) | py |
diff --git a/pyout/field.py b/pyout/field.py
index <HASH>..<HASH> 100644
--- a/pyout/field.py
+++ b/pyout/field.py
@@ -469,7 +469,11 @@ class Flanks(object):
return result
match = self.flank_re.match(result)
- assert match, "This regexp should always match"
+ if not match:
+ ... | field: Provide more details if flank regexp does not match The regexp in Flanks() is intended to always match. gh-<I> reported a case in the wild where the assertion that there's a match failed. Unfortunately, we don't know what the value that didn't match looked like, and the failure now cannot be reproduced. Expan... | py |
diff --git a/satpy/readers/yaml_reader.py b/satpy/readers/yaml_reader.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/yaml_reader.py
+++ b/satpy/readers/yaml_reader.py
@@ -377,10 +377,10 @@ class FileYAMLReader(AbstractYAMLReader):
ds_info,
out=shuttle)... | Fix out of place loading, by not using a shuttle | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -76,7 +76,7 @@ else:
platform_swig_opts = ['-DPCSCLITE']
platform_sources = []
platform_libraries = []
- platform_include_dirs = ['/usr/include/PCSC']
+ platform_include_dirs = ['/usr/include/PCSC', '/usr/... | setup: support build on OpenBSD, and other BSD Add /usr/local/include/PCSC in platform_include_dirs Thanks to Giovani Silva for the bug report <URL> | py |
diff --git a/langcodes/__init__.py b/langcodes/__init__.py
index <HASH>..<HASH> 100644
--- a/langcodes/__init__.py
+++ b/langcodes/__init__.py
@@ -105,6 +105,9 @@ class Language:
self._str_tag = None
self._dict = None
+ # Make sure the str_tag value is cached
+ self.to_tag()
+
@cl... | make equality work even if singletons aren't enforced | py |
diff --git a/tests/tests_pygobject/test_gi_regress.py b/tests/tests_pygobject/test_gi_regress.py
index <HASH>..<HASH> 100644
--- a/tests/tests_pygobject/test_gi_regress.py
+++ b/tests/tests_pygobject/test_gi_regress.py
@@ -28,7 +28,7 @@ except ImportError:
Everything = None
import tests
-from tests import FIXME... | tests: handle missing cairo for the last change | py |
diff --git a/pyontutils/ontree.py b/pyontutils/ontree.py
index <HASH>..<HASH> 100755
--- a/pyontutils/ontree.py
+++ b/pyontutils/ontree.py
@@ -219,8 +219,8 @@ def server(api_key=None):
print(kwargs)
return render(pred, root, **kwargs)
- @app.route(f'/{basename}/query/<pred>/http://<path:iri>', me... | ontree fixed slashes due to nginx eating doubles, remember kids, don't test on localhost! | py |
diff --git a/ores/about.py b/ores/about.py
index <HASH>..<HASH> 100644
--- a/ores/about.py
+++ b/ores/about.py
@@ -1,5 +1,5 @@
__name__ = "ores"
-__version__ = "1.3.0"
+__version__ = "1.3.1"
__author__ = "Aaron Halfaker"
__author_email__ = "ahalfaker@wikimedia.org"
__description__ = "A webserver for hosting scorer ... | Increments version to <I> | py |
diff --git a/molo/core/api/importers.py b/molo/core/api/importers.py
index <HASH>..<HASH> 100644
--- a/molo/core/api/importers.py
+++ b/molo/core/api/importers.py
@@ -478,20 +478,6 @@ class SiteImporter(object):
local_image.save()
return local_image
- def attach_social_media_image(self, page, for... | Remove previously used attach_social_media_image function | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@
# vim: set sw=4 et:
import setuptools
+import glob
setuptools.setup(name='pywb',
version='0.1',
@@ -13,6 +14,8 @@ setuptools.setup(name='pywb',
packages=['pywb'],
provides=['pywb'... | add sample data to dist egg to allow tests against the installed package | py |
diff --git a/wd_property_store.py b/wd_property_store.py
index <HASH>..<HASH> 100755
--- a/wd_property_store.py
+++ b/wd_property_store.py
@@ -257,6 +257,12 @@ wd_properties = {
'domain': ['genes'],
'core_id': 'False'
},
+ 'P684': {
+ 'datatype': 'item',
+ 'name': 'ortholog',
+ ... | Added orthologs (P<I> to genebot) | py |
diff --git a/cwltool/process.py b/cwltool/process.py
index <HASH>..<HASH> 100644
--- a/cwltool/process.py
+++ b/cwltool/process.py
@@ -396,7 +396,7 @@ def avroize_type(field_type, name_prefix=""):
avroize_type(field_type["items"], name_prefix)
return field_type
-class Process(six.with_metaclass(abc.... | process.py: mypy <I> doesn't throw error with six.metaclass now | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -1151,6 +1151,12 @@ class Redis(AbstractRedis, RedisModuleCommands, CoreCommands, SentinelCommands):
self.close()
def close(self):
+ # In case a connection property does not y... | Fix: avoiding issue with PytestUnraisableExceptionWarning (#<I>) * Fix: avoiding issue with PytestUnraisableExceptionWarning that is raised because of __del__() calling self.close() in Redis class, as the self.connection attribute was not set due to early failure in the Redis() constructor. Example: calling redis.Stri... | py |
diff --git a/planet/api/models.py b/planet/api/models.py
index <HASH>..<HASH> 100644
--- a/planet/api/models.py
+++ b/planet/api/models.py
@@ -163,8 +163,13 @@ class _Paged(JSON):
return items
def _json_stream(self, limit):
+ # if there are no results, the GeneratorAdapter doesn't play well
+ ... | fix for streaming JSON with no results otherwise it outputs invalid JSON | py |
diff --git a/girder/api/rest.py b/girder/api/rest.py
index <HASH>..<HASH> 100644
--- a/girder/api/rest.py
+++ b/girder/api/rest.py
@@ -44,11 +44,11 @@ def _cacheAuthUser(fun):
is only performed once per request, and is cached on the request for
subsequent calls to getCurrentUser().
"""
- def inner(sel... | Fixed an issue where asking for the current user with a token would fail if the user was cached. | py |
diff --git a/future/disable_obsolete_builtins.py b/future/disable_obsolete_builtins.py
index <HASH>..<HASH> 100644
--- a/future/disable_obsolete_builtins.py
+++ b/future/disable_obsolete_builtins.py
@@ -13,8 +13,8 @@ called.
The following functions are disabled:
- apply, cmp, coerce, execfile, file, raw_input,
... | Add reduce() and reload() to disabled builtins | py |
diff --git a/wavefront_client/apis/events_api.py b/wavefront_client/apis/events_api.py
index <HASH>..<HASH> 100644
--- a/wavefront_client/apis/events_api.py
+++ b/wavefront_client/apis/events_api.py
@@ -211,8 +211,8 @@ class EventsApi(object):
del header_params['Accept']
# HTTP header `Content-T... | fixing the Content-Type to formdata for create event call | py |
diff --git a/stacker_blueprints/empire/daemon.py b/stacker_blueprints/empire/daemon.py
index <HASH>..<HASH> 100644
--- a/stacker_blueprints/empire/daemon.py
+++ b/stacker_blueprints/empire/daemon.py
@@ -488,6 +488,9 @@ class EmpireDaemon(Blueprint):
Name="EMPIRE_ELB_SG_PUBLIC",
Value=R... | Add EMPIRE_ELB_VPC_ID env variable This is now required for the application load balancer | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -8,5 +8,3 @@ if os.environ.get('READTHEDOCS', None) == 'True':
print os.getcwd()
sys.argv = ['setup.py', 'build_sphinx']
execfile('setup.py')
-
- | Trivial commit to trigger readthedocs | py |
diff --git a/treeherder/settings/base.py b/treeherder/settings/base.py
index <HASH>..<HASH> 100644
--- a/treeherder/settings/base.py
+++ b/treeherder/settings/base.py
@@ -330,7 +330,7 @@ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# Set this to True to submit bug associations to Bugzilla & Elastics... | Bug <I> - Switch to the new OrangeFactor-only ES cluster OrangeFactor is moving to a new ES cluster, so we need to submit the intermittent bug associations to the new endpoint instead. | py |
diff --git a/__pkginfo__.py b/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -49,8 +49,8 @@ install_requires = ['columnize >= 0.3.9',
'pygments >= 2.2.0',
'spark_parser >= 1.8.5, <1.9.0',
'tracer >= 0.3.2',
... | Bump xdis and uncompyle6 min versions | py |
diff --git a/cerberus/schema.py b/cerberus/schema.py
index <HASH>..<HASH> 100644
--- a/cerberus/schema.py
+++ b/cerberus/schema.py
@@ -89,12 +89,8 @@ class DefinitionSchema(MutableMapping):
return str(self)
def __setitem__(self, key, value):
- try:
- self.validate({key: value})
- ... | Removes a useless try/except-block | py |
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/ec2.py
+++ b/salt/cloud/clouds/ec2.py
@@ -994,7 +994,7 @@ def get_availability_zone(vm_):
if avz is None:
return None
- zones = _list_availability_zones()
+ zones = _list_availabili... | EC2 cloud: Fix another availability zone mismatch, preventing cloud.profile state from working correctly | py |
diff --git a/tensorlayer/layers/core.py b/tensorlayer/layers/core.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/layers/core.py
+++ b/tensorlayer/layers/core.py
@@ -189,6 +189,7 @@ class Layer(object):
# self._outputs_shape = self.outputs.get_shape().as_list()
self._built = True
+ ... | is_train as an attribute of base layer and remove is_train as argument for forward function | py |
diff --git a/fc/gate.py b/fc/gate.py
index <HASH>..<HASH> 100644
--- a/fc/gate.py
+++ b/fc/gate.py
@@ -47,11 +47,6 @@ def start_end(data, num_start = 250, num_end = 100, full_output=False):
"""
Gate out first and last events.
- Gate out first and last events from `data`. This is a naive
- implementati... | Shortened docstring of fc.gate.start_end(). | py |
diff --git a/animanager/sqlbuilder/tokens.py b/animanager/sqlbuilder/tokens.py
index <HASH>..<HASH> 100644
--- a/animanager/sqlbuilder/tokens.py
+++ b/animanager/sqlbuilder/tokens.py
@@ -82,26 +82,6 @@ class Tokens:
tokens = self._tokens + other._tokens
return Tokens(*tokens)
- @staticmethod
- ... | Remove quoting from Tokens | py |
diff --git a/airflow/www/views.py b/airflow/www/views.py
index <HASH>..<HASH> 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -748,7 +748,7 @@ class Airflow(BaseView):
host = ti.hostname
log_loaded = False
- if socket.gethostname() == ' bla': #host:
+ if... | added check for unicode type before decoding to fix a decoding bug | py |
diff --git a/blockstack/blockstackd.py b/blockstack/blockstackd.py
index <HASH>..<HASH> 100644
--- a/blockstack/blockstackd.py
+++ b/blockstack/blockstackd.py
@@ -675,6 +675,20 @@ class BlockstackdRPC(BoundedThreadingMixIn, SimpleXMLRPCServer):
if 'error' in res:
return {'error': res['error'], 'ht... | return a name's DID | py |
diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/pylint/__pkginfo__.py
+++ b/pylint/__pkginfo__.py
@@ -33,7 +33,9 @@ install_requires = [
'mccabe',
]
-dependency_links = []
+dependency_links = [
+ 'https://github.com/PyCQA/astroid/tarball/master#egg=astroid-master-... | Use astroid <I> until that gets released | py |
diff --git a/uncompyle6/bin/uncompile.py b/uncompyle6/bin/uncompile.py
index <HASH>..<HASH> 100755
--- a/uncompyle6/bin/uncompile.py
+++ b/uncompyle6/bin/uncompile.py
@@ -51,7 +51,7 @@ Extensions of generated files:
program = 'uncompyle6'
-from uncompyle6 import verify, check_python_version
+from uncompyle6 import... | Check Python version in uncompile.py Seems this is the only place that uses that. | py |
diff --git a/visidata/utils.py b/visidata/utils.py
index <HASH>..<HASH> 100644
--- a/visidata/utils.py
+++ b/visidata/utils.py
@@ -20,6 +20,8 @@ class AttrDict(dict):
try:
return self[k]
except KeyError:
+ if k.startswith("__"):
+ raise AttributeError
... | [AttrDict-] raise AttributeError for missing dunders - copy() requests a bunch of different dunders, and expects AttributeErrors to be raised when they do not exists. fixes copy() for JsonLinesSheet | py |
diff --git a/deployutils/__init__.py b/deployutils/__init__.py
index <HASH>..<HASH> 100644
--- a/deployutils/__init__.py
+++ b/deployutils/__init__.py
@@ -22,4 +22,4 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-__version__ = '0.8.1'
+__ver... | bumps version number to <I>-dev | py |
diff --git a/yargy/tokenizer.py b/yargy/tokenizer.py
index <HASH>..<HASH> 100644
--- a/yargy/tokenizer.py
+++ b/yargy/tokenizer.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
import re
from .utils import Record, assert_type
+from .compat import string_type
from .token import Token
from .morph import F... | Fix tokenization for strings like "1 <I> <I>" | py |
diff --git a/tests/compute/test_manager.py b/tests/compute/test_manager.py
index <HASH>..<HASH> 100644
--- a/tests/compute/test_manager.py
+++ b/tests/compute/test_manager.py
@@ -219,18 +219,6 @@ def test_get_relative_image_path(qemu, tmpdir, config):
assert qemu.get_relative_image_path(path5) == path5
-def te... | Drop a test about OVA no longer use | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -18,10 +18,9 @@ from __future__ import unicode_literals
import os
import sys
-import gitlab
-
sys.path.append("../")
sys.path.append(os.path.dirname(__file__))
+import gitlab # noqa: E402. Needed purely ... | chore(docs): fix import order for readthedocs build | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,8 @@ info = textwrap.dedent(
"""
)
-IS_PYTHON2 = sys.version_info < (3, 0)
+if sys.version_info < (3, 4):
+ sys.exit("Shoebot requires python 3.4 or higher.")
# the following libraries will not be installed... | Update setup.py (#<I>) Remove python 2 support from setup.py. Specify python <I> so that pathlib can be used. | py |
diff --git a/rejected/controller.py b/rejected/controller.py
index <HASH>..<HASH> 100644
--- a/rejected/controller.py
+++ b/rejected/controller.py
@@ -2,10 +2,6 @@
OS Level controlling class invokes startup, shutdown and handles signals.
"""
-__author__ = 'Gavin M. Roy'
-__email__ = 'gmr@myyearbook.com'
-__since__ ... | Remove the module level author/email/since attributes | py |
diff --git a/scheduler/fleet.py b/scheduler/fleet.py
index <HASH>..<HASH> 100644
--- a/scheduler/fleet.py
+++ b/scheduler/fleet.py
@@ -129,7 +129,7 @@ class FleetHTTPClient(object):
# prepare memory limit for the container type
mem = kwargs.get('memory', {}).get(l['c_type'], None)
if mem:
- ... | feat(controller): disable swap usage if there is a memory limit | py |
diff --git a/wagtailmenus/models/menus.py b/wagtailmenus/models/menus.py
index <HASH>..<HASH> 100644
--- a/wagtailmenus/models/menus.py
+++ b/wagtailmenus/models/menus.py
@@ -699,10 +699,8 @@ class SectionMenu(DefinesSubMenuTemplatesMixin, MenuFromPage):
request, contextual_vals, option_vals)
if... | Removed unnecessary complication from if statements in SectionMenu.prepare_to_render() - this method will only ever be called when 'current_level' is 1 - any sub levels will be rendered by a completely different menu instance with it's own 'prepare_to_render' implementation | py |
diff --git a/lib/numina/util/sextractor.py b/lib/numina/util/sextractor.py
index <HASH>..<HASH> 100644
--- a/lib/numina/util/sextractor.py
+++ b/lib/numina/util/sextractor.py
@@ -352,15 +352,15 @@ class SExtractor:
"value": "QUIET"},
"WEIGHT_TYPE":
- {"comment": 'can be "NONE", "BAC... | Fixing wrong comments in sextractor definitions | py |
diff --git a/python/herald/shell.py b/python/herald/shell.py
index <HASH>..<HASH> 100644
--- a/python/herald/shell.py
+++ b/python/herald/shell.py
@@ -132,13 +132,17 @@ class HeraldCommands(object):
"""
lines = []
lines.append("Peer {0}".format(peer.uid))
- lines.append("\t- UID : {0}"... | Show accesses when printing a Peer bean | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,6 +35,7 @@ tests_require = [
'check-manifest>=0.25',
'coverage>=4.0',
'httpretty>=0.8.14',
+ 'invenio-files-rest>=1.0.0a12',
'isort>=4.2.2',
'mock>=2.0.0',
'pydocstyle>=1.0.0',
@@ -64,16 +6... | global: compatibility fix with Flask-WTF>=<I> | py |
diff --git a/gkeepapi/node.py b/gkeepapi/node.py
index <HASH>..<HASH> 100644
--- a/gkeepapi/node.py
+++ b/gkeepapi/node.py
@@ -1675,10 +1675,10 @@ class NodeDrawingInfo(Element):
super(NodeDrawingInfo, self)._load(raw)
self.drawing_id = raw['drawingId']
self.snapshot.load(raw['snapshotData'])... | Issue #<I>: Fix ParseException in NodeDrawingInfo | py |
diff --git a/examples/pytorch/translation/run_translation_no_trainer.py b/examples/pytorch/translation/run_translation_no_trainer.py
index <HASH>..<HASH> 100644
--- a/examples/pytorch/translation/run_translation_no_trainer.py
+++ b/examples/pytorch/translation/run_translation_no_trainer.py
@@ -678,7 +678,7 @@ def main(... | Fix savedir for by epoch (#<I>) | py |
diff --git a/MAVProxy/modules/lib/grapher.py b/MAVProxy/modules/lib/grapher.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/modules/lib/grapher.py
+++ b/MAVProxy/modules/lib/grapher.py
@@ -336,6 +336,9 @@ class MavGraph(object):
if title is not None:
pylab.title(title)
+ self.fig.canvas... | set MAVExplorer window titles makes finding graphs in taskbar easier | py |
diff --git a/pyparsing/testing.py b/pyparsing/testing.py
index <HASH>..<HASH> 100644
--- a/pyparsing/testing.py
+++ b/pyparsing/testing.py
@@ -1,7 +1,6 @@
# testing.py
from contextlib import contextmanager
-import unittest
from pyparsing.core import (
ParserElement, | Don't import unittest in testing.py (#<I>) This import is currently unused in the file. I'm looking at optimising start-up times of a project I work on, and importing pyparsing currently takes about <I>ms, which is quite a lot for my domain. Just not importing `unittest` shaves <I>ms off of that import time. | py |
diff --git a/tests/test_polygon.py b/tests/test_polygon.py
index <HASH>..<HASH> 100644
--- a/tests/test_polygon.py
+++ b/tests/test_polygon.py
@@ -188,4 +188,12 @@ class TestPolygonMakeValid(unittest.TestCase):
self.assertFalse(geom.is_valid)
fixed = make_it_valid(geom)
self.assertTrue(fixed.... | Fix test to support different versions of GEOS, which have different behaviour w.r.t this issue. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ sys.dont_write_bytecode = True
setup(
name='pipe2py',
- version='0.11.0',
+ version='0.12.0',
description=(
'A project to compile Yahoo! Pipes into Python. '
'The pipe2py pac... | Bump to version <I> | py |
diff --git a/tests/test_connect.py b/tests/test_connect.py
index <HASH>..<HASH> 100644
--- a/tests/test_connect.py
+++ b/tests/test_connect.py
@@ -484,6 +484,7 @@ class TestConnection(tb.ConnectedTestCase):
ssl=ssl_context)
+@unittest.skipIf(os.environ.get('PGHOST'), 'unmanaged cluster')
class Tes... | Skip SSL tests entirely when running tests against a remote server. | py |
diff --git a/gludb/backends/dynamodb.py b/gludb/backends/dynamodb.py
index <HASH>..<HASH> 100644
--- a/gludb/backends/dynamodb.py
+++ b/gludb/backends/dynamodb.py
@@ -23,8 +23,9 @@ def uuid():
def get_conn():
"""Return a connection to DynamoDB (and handle local/debug possibilities)
"""
- if os.environ.get... | actually need to use correct dynamodb on travis | py |
diff --git a/scripts/illumina_finished_msg.py b/scripts/illumina_finished_msg.py
index <HASH>..<HASH> 100644
--- a/scripts/illumina_finished_msg.py
+++ b/scripts/illumina_finished_msg.py
@@ -29,9 +29,9 @@ import yaml
from amqplib import client_0_8 as amqp
import logbook
+from bcbio import utils
from bcbio.solexa i... | bcbio.broad does not contain utils | py |
diff --git a/src/openaccess_epub/ops/opsplos.py b/src/openaccess_epub/ops/opsplos.py
index <HASH>..<HASH> 100644
--- a/src/openaccess_epub/ops/opsplos.py
+++ b/src/openaccess_epub/ops/opsplos.py
@@ -1140,6 +1140,8 @@ class OPSPLoS(OPSMeta):
appears to employ either <p>s or <list>s.
"""
for di... | adding a check for elevating a disp-quote node if it is under a paragraph tag | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -75,6 +75,12 @@ class build_ext(build_ext_orig, object):
ext.define_macros.extend(
[('MODULE_NAME', self.distribution.metadata.name), ('MODULE_VERSION', self.distribution.metadata.version)]
)
+ ... | escape the XMSLEC_CRYPTO macro value, just as it was done in the original setup | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.