diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/flapjack/exceptions.py b/src/flapjack/exceptions.py
index <HASH>..<HASH> 100644
--- a/src/flapjack/exceptions.py
+++ b/src/flapjack/exceptions.py
@@ -1,6 +1,6 @@
"""..
"""
-from . import http
+from . import http, encoders
class Error(Exception):
@@ -13,16 +13,19 @@ class Error(Exception):
... | Exceptions now default to an encoder if not provided one. | py |
diff --git a/pyontutils/utils.py b/pyontutils/utils.py
index <HASH>..<HASH> 100644
--- a/pyontutils/utils.py
+++ b/pyontutils/utils.py
@@ -517,7 +517,7 @@ class byCol:
ind[col_name] = self.header # the header
self.__indexes[col_name] = ind
- for name, col in zip(header, zip(*rows)):
... | byCol.cols fixed bug caused by old implementation resulted in properties not being set if rows was empty | py |
diff --git a/cassandra/cqlengine/query.py b/cassandra/cqlengine/query.py
index <HASH>..<HASH> 100644
--- a/cassandra/cqlengine/query.py
+++ b/cassandra/cqlengine/query.py
@@ -664,12 +664,20 @@ class AbstractQuerySet(object):
return self.filter(*args, **kwargs).get()
self._execute_query()
- ... | PYTHON-<I>: Avoid sending a COUNT query with QuerySet.get() | py |
diff --git a/salt/engines/libvirt_events.py b/salt/engines/libvirt_events.py
index <HASH>..<HASH> 100644
--- a/salt/engines/libvirt_events.py
+++ b/salt/engines/libvirt_events.py
@@ -313,10 +313,9 @@ def _domain_event_graphics_cb(conn, domain, phase, local, remote, auth, subject,
'''
transform address... | libvirt_events engine: fix graphics callback The addresses parameter is dictionary but its members weren't properly accessed. The subject parameter is actually a list of tuples containing two items: one for the subject type and one for its name. | py |
diff --git a/h2o-py/h2o/frame.py b/h2o-py/h2o/frame.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/frame.py
+++ b/h2o-py/h2o/frame.py
@@ -1454,9 +1454,13 @@ class H2OFrame(object):
if values is None: values = "_"
if group_by_frame is None: group_by_frame = "_"
+
+ # This code below is needed to ensure t... | A different attempt at eager-izing the frame | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(
"requests>=2.4.3,<3",
"strict-rfc3339>=0.7,<1",
"click>=3.3,<7",
- "jsonpointer>=1.7,<2",
+ "jsonpointer>=1.7,<3",
],
license="BSD",
zip_safe=False, | Updated jsonpointer dependency to allow 2.x. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -18,7 +18,7 @@ import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os... | Attempt to fix the doc compilation | py |
diff --git a/pymatgen/entries/__init__.py b/pymatgen/entries/__init__.py
index <HASH>..<HASH> 100644
--- a/pymatgen/entries/__init__.py
+++ b/pymatgen/entries/__init__.py
@@ -22,6 +22,7 @@ __email__ = "shyuep@gmail.com"
__status__ = "Production"
__date__ = "Mar 03, 2020"
+
class Entry(MSONable, metaclass=ABCMeta):... | pycodestyle linting edits | py |
diff --git a/pgpy/pgp.py b/pgpy/pgp.py
index <HASH>..<HASH> 100644
--- a/pgpy/pgp.py
+++ b/pgpy/pgp.py
@@ -9,7 +9,7 @@ from .packet.packets import Signature
from .packet.types import HashAlgo
from .packet.types import PubKeyAlgo
-from .packet.fields.fields import Header
+# from .packet.fields.fields import Header
... | more commenting-out-of-things | py |
diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py
index <HASH>..<HASH> 100644
--- a/aiohttp/helpers.py
+++ b/aiohttp/helpers.py
@@ -123,6 +123,9 @@ class FormData:
part = self._writer.append(value, headers)
if dispparams:
part.set_content_disposition('form-data', **disppara... | Fix test_post_files (test_web_functional.TestWebFunctional) test case cgi.FieldStorage doesn't likes body parts with Content-Length which were sent via chunked transfer encoding. This fix doesn't saves aiohttp.web from failure for third party clients, but at least it continue work correct for aiohttp one. | py |
diff --git a/test/test_jobconf.py b/test/test_jobconf.py
index <HASH>..<HASH> 100644
--- a/test/test_jobconf.py
+++ b/test/test_jobconf.py
@@ -66,11 +66,17 @@ class jobconf_tc(unittest.TestCase):
self.assertEqual(o.getInt('int'), int(d['int']))
self.assertEqual(o.getBoolean('bool'), d['bool'] == 'true')
+ ... | New test to JobConf to verify exception raise by get with missing key | py |
diff --git a/grimoire_elk/enriched/git.py b/grimoire_elk/enriched/git.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/git.py
+++ b/grimoire_elk/enriched/git.py
@@ -25,22 +25,19 @@
import json
import logging
import re
-import time
import sys
+import time
import pkg_resources
import requests
-
from da... | [elk] Update import section in git backend This patch replaces the elk package with enriched one in the import section. | py |
diff --git a/ems_client/__init__.py b/ems_client/__init__.py
index <HASH>..<HASH> 100644
--- a/ems_client/__init__.py
+++ b/ems_client/__init__.py
@@ -9,6 +9,7 @@ from suds.cache import ObjectCache
from ems_client.mock import EMSMockData
import sys
import os
+from common_tools.imports import load_object_by_name
... | add insecure transport for ems client, for debugging | py |
diff --git a/costcla/models/cost_ensemble.py b/costcla/models/cost_ensemble.py
index <HASH>..<HASH> 100644
--- a/costcla/models/cost_ensemble.py
+++ b/costcla/models/cost_ensemble.py
@@ -5,7 +5,7 @@ This module include the cost sensitive ensemble methods.
# Authors: Alejandro Correa Bahnsen <al.bahnsen@gmail.com>
# L... | Updating sklearn.cross_validation to sklearn.model_selection | py |
diff --git a/overview.py b/overview.py
index <HASH>..<HASH> 100644
--- a/overview.py
+++ b/overview.py
@@ -174,6 +174,11 @@ class Overview():
self.empty_row()
self.display_info(self.data.expenseMenu, self.data.expenses)
self.overviewGrid.show_all()
+
+ self.balanceTotalLabel.se... | Updates balance/variance fields when adding new items | py |
diff --git a/x10_any/__init__.py b/x10_any/__init__.py
index <HASH>..<HASH> 100644
--- a/x10_any/__init__.py
+++ b/x10_any/__init__.py
@@ -42,7 +42,7 @@ except NameError:
basestring = str
-version_tuple = (0, 0, 8)
+version_tuple = (0, 0, 9)
version = version_string = __version__ = '%d.%d.%d' % version_tuple
... | Version bump to <I> in prep for next release Only difference between <I> and <I> is a description on PyPi | py |
diff --git a/nodeconductor/cost_tracking/admin.py b/nodeconductor/cost_tracking/admin.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/cost_tracking/admin.py
+++ b/nodeconductor/cost_tracking/admin.py
@@ -1,4 +1,3 @@
-from django.conf.urls import patterns, url
from django.contrib import admin
from django.contrib.ad... | Remove leftover imports (NC-<I>) | py |
diff --git a/ccmlib/node.py b/ccmlib/node.py
index <HASH>..<HASH> 100644
--- a/ccmlib/node.py
+++ b/ccmlib/node.py
@@ -1991,7 +1991,7 @@ class Node(object):
out, _, _ = handle_external_tool_process(p, ["sstableutil", '--type', 'final', ks, table])
- return sorted(filter(lambda s: s.endswith('-Data.d... | stdout is returning bytes in python 3 causing this to fail. | py |
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -301,7 +301,8 @@ _CONFIGS = {
'msan': SimpleConfig('msan'),
'ubsan': SimpleConfig('ubsan'),
'asan': SimpleConfig('asan', environ={
... | Enable LSAN report_objects by default | py |
diff --git a/claripy/ast/bv.py b/claripy/ast/bv.py
index <HASH>..<HASH> 100644
--- a/claripy/ast/bv.py
+++ b/claripy/ast/bv.py
@@ -225,7 +225,7 @@ def BVV(value, size=None, **kwargs):
value = int(binascii.hexlify(value), 16) if value != "" else 0
else:
raise ClaripyValueError('string/... | Add an additional typecheck to BVV creation | py |
diff --git a/linkcheck/logger/csvlog.py b/linkcheck/logger/csvlog.py
index <HASH>..<HASH> 100644
--- a/linkcheck/logger/csvlog.py
+++ b/linkcheck/logger/csvlog.py
@@ -49,8 +49,7 @@ class CSVLogger (Logger):
def comment (self, s, **args):
"""Write CSV comment."""
- self.write(u"# ")
- self.... | Encode comments in CSV logger. | py |
diff --git a/keanu-python/keanu/stats.py b/keanu-python/keanu/stats.py
index <HASH>..<HASH> 100644
--- a/keanu-python/keanu/stats.py
+++ b/keanu-python/keanu/stats.py
@@ -12,9 +12,11 @@ java_import(k.jvm_view(), "io.improbable.keanu.algorithms.SampleStats")
def autocorrelation(arg: List[numpy_types]) -> ndarray:
-... | Check input are all floats and scalar | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100644
--- a/main.py
+++ b/main.py
@@ -3,10 +3,10 @@
import experiments.sample as experiment
from model_factories.J48_ModelFactory import ModelFactory
from measurements import accuracy
-response_header = "Classgeneral_violence"
+response_header = "Outcome"
graph_m... | Changed default experiment back to sample experiment. | py |
diff --git a/bika/lims/jsonapi/update.py b/bika/lims/jsonapi/update.py
index <HASH>..<HASH> 100644
--- a/bika/lims/jsonapi/update.py
+++ b/bika/lims/jsonapi/update.py
@@ -104,7 +104,10 @@ class Update(object):
self.used("obj_path")
site_path = request['PATH_INFO'].replace("/@@API/update", "")
- ... | Fix JSON update due to virtual host | py |
diff --git a/worldengine/cli/main.py b/worldengine/cli/main.py
index <HASH>..<HASH> 100644
--- a/worldengine/cli/main.py
+++ b/worldengine/cli/main.py
@@ -449,9 +449,11 @@ def main():
step, args.ocean_level, world_format,
args.verbose, black_and_white=args... | Changed paths for grayscale- and rivers-map. | py |
diff --git a/ansible_runner/runner.py b/ansible_runner/runner.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/runner.py
+++ b/ansible_runner/runner.py
@@ -10,7 +10,7 @@ import pexpect
import psutil
from .utils import OutputWriter
-from .exceptions import CallbackError
+from .exceptions import CallbackError, Ans... | Add stdout property to runner object | py |
diff --git a/dbmigrator/cli.py b/dbmigrator/cli.py
index <HASH>..<HASH> 100644
--- a/dbmigrator/cli.py
+++ b/dbmigrator/cli.py
@@ -48,6 +48,10 @@ def main(argv=sys.argv[1:]):
parser.print_help()
return parser.error('command missing')
+ if not args.get('migrations_directory'):
+ parser.prin... | Return error if migrations directory is undefined Close #4 | py |
diff --git a/ec2_metadata.py b/ec2_metadata.py
index <HASH>..<HASH> 100644
--- a/ec2_metadata.py
+++ b/ec2_metadata.py
@@ -126,6 +126,15 @@ class EC2Metadata(BaseLazyObject):
else:
return resp.content
+ @cached_property
+ def instance_profile_arn(self):
+ resp = self._get_url(METADA... | Add instance_profile_arn and instance_profile_id (#<I>) | py |
diff --git a/pymatgen/core/periodic_table.py b/pymatgen/core/periodic_table.py
index <HASH>..<HASH> 100644
--- a/pymatgen/core/periodic_table.py
+++ b/pymatgen/core/periodic_table.py
@@ -324,7 +324,7 @@ class ElementBase(Enum):
@property
def electron_affinity(self) -> float:
"""
- First ioniza... | Correct doc description of electron affinity The electron affinity description is duplicate with ionization energy. Updated the definition according to wiki (<URL>). | py |
diff --git a/phy/waveform/loader.py b/phy/waveform/loader.py
index <HASH>..<HASH> 100644
--- a/phy/waveform/loader.py
+++ b/phy/waveform/loader.py
@@ -117,7 +117,7 @@ class WaveformLoader(object):
slice_extract = _slice(time_o,
self.n_samples_before_after,
... | Fix bug in waveform loader with concatenated virtual arrays. | py |
diff --git a/airflow/hooks/hive_hooks.py b/airflow/hooks/hive_hooks.py
index <HASH>..<HASH> 100644
--- a/airflow/hooks/hive_hooks.py
+++ b/airflow/hooks/hive_hooks.py
@@ -74,7 +74,7 @@ class HiveCliHook(BaseHook):
with TemporaryDirectory(prefix='airflow_hiveop_') as tmp_dir:
with NamedTemporaryF... | Convert to bytes for py3 compat | py |
diff --git a/area4/__init__.py b/area4/__init__.py
index <HASH>..<HASH> 100644
--- a/area4/__init__.py
+++ b/area4/__init__.py
@@ -20,6 +20,7 @@ divider10 = str(",,,,,,,,,,,,,,,,,,,,,,,,")
divider11 = str("////////////////////////")
divider12 = str("||||||||||||||||||||||||")
divider13 = str("~~~~~~~~~~~~~~~~~~~~~~~... | Added backslash dividers | py |
diff --git a/porespy/tools/__funcs__.py b/porespy/tools/__funcs__.py
index <HASH>..<HASH> 100644
--- a/porespy/tools/__funcs__.py
+++ b/porespy/tools/__funcs__.py
@@ -41,9 +41,9 @@ def subdivide(im, divs=2):
``s`` contains an array with the shape given by ``divs``. To access the
first and last quadrants of... | final change to docstring examples, hopefully. | py |
diff --git a/tests/unit/utils/test_systemd.py b/tests/unit/utils/test_systemd.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_systemd.py
+++ b/tests/unit/utils/test_systemd.py
@@ -100,6 +100,27 @@ class SystemdTestCase(TestCase):
self.assertTrue(_systemd.version(context))
self.asser... | Add test for systemd version from git describe | py |
diff --git a/django_autoconfig/contrib/__init__.py b/django_autoconfig/contrib/__init__.py
index <HASH>..<HASH> 100644
--- a/django_autoconfig/contrib/__init__.py
+++ b/django_autoconfig/contrib/__init__.py
@@ -88,6 +88,9 @@ CONTRIB_CONFIGS = {
'AUTOCONFIG_EXTRA_URLS': [
'django_autoconfig... | django.contrib.admin requires django.contrib.auth.context_processors.auth to be in TEMPLATE_CONTEXT_PROCESSORS | py |
diff --git a/tornado/curl_httpclient.py b/tornado/curl_httpclient.py
index <HASH>..<HASH> 100644
--- a/tornado/curl_httpclient.py
+++ b/tornado/curl_httpclient.py
@@ -493,6 +493,7 @@ class CurlAsyncHTTPClient(AsyncHTTPClient):
def _curl_debug(self, debug_type, debug_msg):
debug_types = ('I', '<', '>', '... | cast curl debug messages to str since they come in as bytes on Python 3 | py |
diff --git a/saltcloud/utils/__init__.py b/saltcloud/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/saltcloud/utils/__init__.py
+++ b/saltcloud/utils/__init__.py
@@ -340,7 +340,7 @@ def sftp_file(transport, host, dest_path, contents):
tmpfile = open(tmppath, 'w')
tmpfile.write(contents)
tmpfile.clos... | sftp_file doesn't always transfer deploy.sh | py |
diff --git a/tests/cli/_demo_basic_usage.py b/tests/cli/_demo_basic_usage.py
index <HASH>..<HASH> 100644
--- a/tests/cli/_demo_basic_usage.py
+++ b/tests/cli/_demo_basic_usage.py
@@ -139,7 +139,7 @@ def _unittest_slow_cli_demo_basic_usage(
# Time to let the background processes finish initialization.
... | This is not going to work, no. We should speed up code generation. | py |
diff --git a/pfp/interp.py b/pfp/interp.py
index <HASH>..<HASH> 100644
--- a/pfp/interp.py
+++ b/pfp/interp.py
@@ -1647,6 +1647,8 @@ class PfpInterp(object):
return special_switch[node.op](node, scope, ctxt, stream)
field = self._handle_node(node.expr, scope, ctxt, stream)
+ if type(field... | fix the bug of sizeof(STRUCT_NAME), for example a template like blow: typedef struct{ DWORD x; DWORD y; }STRUCT_TEST; local int i = sizeof(STRUCT_TEST); //pfp will crash at "sizeof" op, because the struct class is not have a instance | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ from setuptools import setup
setup(
name='Flask-Cors',
- version='1.2.0',
+ version='1.2.1',
url='https://github.com/wcdolphin/flask-cors',
license='MIT',
author='Cory Dolphin... | Releasing version <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ short_description = "{}".format(
setup(
name="PySyncThru",
- version="0.6.0",
+ version="0.7.0",
description=short_description,
author="nielstron",
author_email="n.muendler@we... | Bump to version <I> This change includes some heavy refactoring. Language dependency is scrapped, rather than that now the more reliable hrDeviceStatus value is used. The display information (statusX) is concatenated and returned on demand via device_status_details | py |
diff --git a/salt/modules/nacl.py b/salt/modules/nacl.py
index <HASH>..<HASH> 100644
--- a/salt/modules/nacl.py
+++ b/salt/modules/nacl.py
@@ -81,7 +81,7 @@ without extra parameters:
.. code-block:: bash
salt-run nacl.enc 'asecretpass'
- salt-run nacl.dec 'tqXzeIJnTAM9Xf0mdLcpEdklMbfBGPj2oTKmlgrm3S1DTVVHNnh9... | update nacl.dec example to add missing argument nacl.dec was missing required positional argument 'data' like in example above it | py |
diff --git a/mistletoe/core_tokens.py b/mistletoe/core_tokens.py
index <HASH>..<HASH> 100644
--- a/mistletoe/core_tokens.py
+++ b/mistletoe/core_tokens.py
@@ -101,11 +101,15 @@ def process_emphasis(string, stack_bottom, delimiters, matches):
if not opener.remove(n, left=False):
delimiters.... | removing from delimiter always decrement curr_pos | py |
diff --git a/src/Exscriptd/xml.py b/src/Exscriptd/xml.py
index <HASH>..<HASH> 100644
--- a/src/Exscriptd/xml.py
+++ b/src/Exscriptd/xml.py
@@ -91,8 +91,10 @@ def get_dict_from_etree(node):
args[name] = child.text.strip()
elif child.tag == 'list':
args[name] = get_list_from_etree(child... | Exscriptd.xml: add support for adding/parsing nested maps. | py |
diff --git a/djcelery/management/commands/celerymon.py b/djcelery/management/commands/celerymon.py
index <HASH>..<HASH> 100644
--- a/djcelery/management/commands/celerymon.py
+++ b/djcelery/management/commands/celerymon.py
@@ -11,7 +11,7 @@ from djcelery.app import app
from djcelery.management.base import CeleryComman... | celerymonitor is now celerymon | py |
diff --git a/cornice_sphinx/__init__.py b/cornice_sphinx/__init__.py
index <HASH>..<HASH> 100644
--- a/cornice_sphinx/__init__.py
+++ b/cornice_sphinx/__init__.py
@@ -69,10 +69,6 @@ class ServiceDirective(Directive):
self.env = self.state.document.settings.env
def run(self):
- # clear the SERVICE... | Erase the SERVICES variable after having used it, not before. If the modules were already loaded in sphinx, they will not be in MODULES, neither re-registered with a simple import. | py |
diff --git a/nodeconductor/server/base_settings.py b/nodeconductor/server/base_settings.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/server/base_settings.py
+++ b/nodeconductor/server/base_settings.py
@@ -259,5 +259,6 @@ NODECONDUCTOR = {
try:
from nodeconductor_plus.settings import *
INSTALLED_APPS +=... | Enable extension of celery schedule (NC-<I>) | py |
diff --git a/sgp4/propagation.py b/sgp4/propagation.py
index <HASH>..<HASH> 100644
--- a/sgp4/propagation.py
+++ b/sgp4/propagation.py
@@ -1323,7 +1323,7 @@ def sgp4init(
satrec.t = 0.0;
(
- no,
+ satrec.no,
method,
ainv, ao, satrec.con41, con42, cosio,
cosio2,ecc... | Bugfix: _initl() needs to change satrec.no | py |
diff --git a/jumeaux/executor.py b/jumeaux/executor.py
index <HASH>..<HASH> 100644
--- a/jumeaux/executor.py
+++ b/jumeaux/executor.py
@@ -353,9 +353,7 @@ def main():
else:
config: Config = create_config(args.config.get())
global_addon_executor = AddOnExecutor(config.addons)
- input_paths ... | :fire: Change `input_files` property in config * Before: relative path from config * After: path from script supported both relative and absolute | py |
diff --git a/references/detection/transforms.py b/references/detection/transforms.py
index <HASH>..<HASH> 100644
--- a/references/detection/transforms.py
+++ b/references/detection/transforms.py
@@ -218,10 +218,10 @@ class RandomZoomOut(nn.Module):
class RandomPhotometricDistort(nn.Module):
def __init__(
... | Type fix in transformers.py (#<I>) Update `RandomPhotometricDistort` `__init__` argument to correct types. | py |
diff --git a/ryu/lib/packet/ipv4.py b/ryu/lib/packet/ipv4.py
index <HASH>..<HASH> 100644
--- a/ryu/lib/packet/ipv4.py
+++ b/ryu/lib/packet/ipv4.py
@@ -73,7 +73,7 @@ class ipv4(packet_base.PacketBase):
self.ttl, self.proto, 0, self.src, self.dst)
if self.option:
- assert s... | packet lib: fix ipv4 assertion of option field | py |
diff --git a/embedly/tests.py b/embedly/tests.py
index <HASH>..<HASH> 100644
--- a/embedly/tests.py
+++ b/embedly/tests.py
@@ -1,5 +1,6 @@
from __future__ import unicode_literals
import unittest
+import json
from embedly.client import Embedly
from embedly.models import Url
@@ -72,6 +73,10 @@ class EmbedlyTestCase... | Test to check the dict (and nested dictionaries) can be JSON serialized. This test fails. | py |
diff --git a/tests/test_management_command.py b/tests/test_management_command.py
index <HASH>..<HASH> 100644
--- a/tests/test_management_command.py
+++ b/tests/test_management_command.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
import os
import sys
import shutil | Fix Python <I> tests by dropping unicode literals. | py |
diff --git a/osmhm/process.py b/osmhm/process.py
index <HASH>..<HASH> 100644
--- a/osmhm/process.py
+++ b/osmhm/process.py
@@ -1,11 +1,4 @@
-from filters import (
- suspiciousFilter,
- userFilter,
- objectFilter,
- )
-from diffUtil import diffUtil
-
-def process(sequence):
+def process(objects):
def co... | Separated filters from process.py | py |
diff --git a/twitcher/owssecurity.py b/twitcher/owssecurity.py
index <HASH>..<HASH> 100644
--- a/twitcher/owssecurity.py
+++ b/twitcher/owssecurity.py
@@ -36,7 +36,11 @@ class OWSSecurity(object):
def check_request(self, request):
if request.path.startswith(protected_path):
- service_name =... | fixed /ows/wps access | py |
diff --git a/command/upload.py b/command/upload.py
index <HASH>..<HASH> 100644
--- a/command/upload.py
+++ b/command/upload.py
@@ -194,5 +194,5 @@ class upload(PyPIRCCommand):
self.announce('Upload failed (%s): %s' % (r.status, r.reason),
log.ERROR)
if self.show_response... | Follow-up to #<I>: Fix str.join use, add newlines. Thanks to Konrad Delong for writing a test for upload_docs --show-response in distutils2, letting me catch my mistake. | py |
diff --git a/spinoff/contrib/filetransfer/server.py b/spinoff/contrib/filetransfer/server.py
index <HASH>..<HASH> 100644
--- a/spinoff/contrib/filetransfer/server.py
+++ b/spinoff/contrib/filetransfer/server.py
@@ -68,10 +68,11 @@ class Server(Actor):
r = upload(url, files={'file': open(file_path, ... | Fixed a bug in fileref upload error handling | py |
diff --git a/salt/states/zcbuildout.py b/salt/states/zcbuildout.py
index <HASH>..<HASH> 100644
--- a/salt/states/zcbuildout.py
+++ b/salt/states/zcbuildout.py
@@ -41,7 +41,7 @@ from __future__ import absolute_import
import sys
# Import salt libs
-from six import string_types
+from salt.utils.six import string_types... | Replaced module six in file /salt/states/zcbuildout.py | py |
diff --git a/airflow/contrib/auth/backends/ldap_auth.py b/airflow/contrib/auth/backends/ldap_auth.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/auth/backends/ldap_auth.py
+++ b/airflow/contrib/auth/backends/ldap_auth.py
@@ -97,10 +97,9 @@ class LdapUser(models.User):
"BASE": BASE
}
- ... | Add "search_scope" as a configuration variable for LDAP (#<I>) This is the correct solution to #<I> -- instead of completely dropping the variable all together. Added a bit of "pretty" failure for this error as well--including specifying what is happening in the webserver log, and how it can be fixed. search_scope d... | py |
diff --git a/atlassian/jira.py b/atlassian/jira.py
index <HASH>..<HASH> 100644
--- a/atlassian/jira.py
+++ b/atlassian/jira.py
@@ -3394,6 +3394,13 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
url = "rest/agile/1.0/{board_id}/backlog".format(board_id=board_id)
return self.get(url)
+ ... | [JIRA] Add a funciton to get issues for board (#<I>) | py |
diff --git a/imagen/views.py b/imagen/views.py
index <HASH>..<HASH> 100644
--- a/imagen/views.py
+++ b/imagen/views.py
@@ -399,6 +399,13 @@ class SheetStack(NdMapping):
def roi(self):
return self.map(lambda x: x.roi)
+ @property
+ def rgb(self):
+ if self.type == SheetOverlay:
+ ... | Added rgb property to SheetStack to convert stacks of SheetOverlays | py |
diff --git a/zenpy/lib/endpoint.py b/zenpy/lib/endpoint.py
index <HASH>..<HASH> 100644
--- a/zenpy/lib/endpoint.py
+++ b/zenpy/lib/endpoint.py
@@ -220,8 +220,8 @@ class SearchEndpoint(BaseEndpoint):
return "%(query)s%(search_parameters)s%(sort_section)s" % locals()
def format_between(self, key, values):... | Allow tuples when using created_between kwargs. | py |
diff --git a/zipline/data/bundles/quandl.py b/zipline/data/bundles/quandl.py
index <HASH>..<HASH> 100644
--- a/zipline/data/bundles/quandl.py
+++ b/zipline/data/bundles/quandl.py
@@ -17,6 +17,8 @@ from zipline.utils.cli import maybe_show_progress
log = Logger(__name__)
seconds_per_call = (pd.Timedelta('10 minutes')... | BUG: Fixes quandl bundle failing to download pricing data for invalid symbol | py |
diff --git a/mechanicalsoup/browser.py b/mechanicalsoup/browser.py
index <HASH>..<HASH> 100644
--- a/mechanicalsoup/browser.py
+++ b/mechanicalsoup/browser.py
@@ -11,7 +11,10 @@ import weakref
class Browser(object):
- """Builds a Browser.
+ """Builds a low-level Browser.
+
+ It is recommended to use :clas... | browser.py: suggest StatefulBrowser in docstring We recommend using the StatefulBrowser class for most applications, so say this in the Browser docstring. Related to #<I>. | py |
diff --git a/niworkflows/interfaces/registration.py b/niworkflows/interfaces/registration.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/registration.py
+++ b/niworkflows/interfaces/registration.py
@@ -384,11 +384,11 @@ class EstimateReferenceImage(SimpleInterface):
n_volumes_to_discard = _get_v... | RF: Use runtime.cwd over abspath | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ setup(
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
+ "License :: OSI Approved :: MIT License",
"Programming Language :: ... | Add license to trove classifiers. | py |
diff --git a/pybar/scans/scan_iv.py b/pybar/scans/scan_iv.py
index <HASH>..<HASH> 100644
--- a/pybar/scans/scan_iv.py
+++ b/pybar/scans/scan_iv.py
@@ -41,6 +41,7 @@ class IVScan(Fei4RunBase):
if abs(voltage) <= abs(self.max_voltage):
self.dut['Sourcemeter'].set_voltage(voltage)
... | ENH: also wait after voltage change to not measure the induced current | py |
diff --git a/frontend/pages/course_admin/task_edit.py b/frontend/pages/course_admin/task_edit.py
index <HASH>..<HASH> 100644
--- a/frontend/pages/course_admin/task_edit.py
+++ b/frontend/pages/course_admin/task_edit.py
@@ -105,7 +105,7 @@ class CourseEditTask(object):
insert_dict = insert_dict[i]
... | task.* shouldn't appear in the editable files | py |
diff --git a/click_completion/__init__.py b/click_completion/__init__.py
index <HASH>..<HASH> 100644
--- a/click_completion/__init__.py
+++ b/click_completion/__init__.py
@@ -144,7 +144,7 @@ def do_fish_complete(cli, prog_name):
for item, help in get_choices(cli, prog_name, args, incomplete):
if help:
-... | make sure that no tab on carriage return is in the doc with fish because it is just not supported by the fish completion format | py |
diff --git a/estnltk/syntax/syntax_preprocessing.py b/estnltk/syntax/syntax_preprocessing.py
index <HASH>..<HASH> 100644
--- a/estnltk/syntax/syntax_preprocessing.py
+++ b/estnltk/syntax/syntax_preprocessing.py
@@ -72,9 +72,6 @@ class Cg3Exporter():
line = ' "+0" Y nominal ' # '!~~~'
... | removed hack for the lines that contain 'ei" L0(.*) V aux neg cap ' | py |
diff --git a/jsonschema/_validators.py b/jsonschema/_validators.py
index <HASH>..<HASH> 100644
--- a/jsonschema/_validators.py
+++ b/jsonschema/_validators.py
@@ -71,12 +71,28 @@ def items(validator, items, instance, schema):
return
if validator.is_type(items, "array"):
+ """
+ Used in in ... | Julian/jsonschema#<I>: Adapt items to work with prefixItems | py |
diff --git a/tests/test_construct_policy.py b/tests/test_construct_policy.py
index <HASH>..<HASH> 100644
--- a/tests/test_construct_policy.py
+++ b/tests/test_construct_policy.py
@@ -23,6 +23,11 @@ ANSWER1 = {
def test_main():
"""Check general assemblage."""
+ settings = {}
+
+ policy_json = construct_pol... | tests: Test IAM Policy with no "services" See also: PSOBAT-<I> | py |
diff --git a/salt/fileclient.py b/salt/fileclient.py
index <HASH>..<HASH> 100644
--- a/salt/fileclient.py
+++ b/salt/fileclient.py
@@ -590,7 +590,7 @@ class Client(object):
ftp.retrbinary("RETR {0}".format(remote_file_path), fp_.write)
ftp.quit()
return dest
- ... | Add back removed pylint | py |
diff --git a/eventsourcing/popo.py b/eventsourcing/popo.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/popo.py
+++ b/eventsourcing/popo.py
@@ -1,5 +1,4 @@
from collections import defaultdict
-from itertools import count
from threading import Lock
from typing import Any, Dict, Iterable, List, Optional, Sequence
... | Reworked POPO recorder's select_notifications() method. Avoid missing branch coverage report by using 'while True' rather than iterating over count(). | py |
diff --git a/wallace/command_line.py b/wallace/command_line.py
index <HASH>..<HASH> 100755
--- a/wallace/command_line.py
+++ b/wallace/command_line.py
@@ -36,6 +36,12 @@ def log(msg, delay=0.5, chevrons=True, verbose=True):
time.sleep(delay)
+def ensure_heroku_logged_in():
+ p = pexpect.spawn("heroku au... | Ensure user in logged into Heroku when deploying | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -3531,7 +3531,7 @@ class IPField(Field):
if self in conf.resolve:
try:
ret = socket.gethostbyaddr(x)[0]
- except socket.herror:
+ except:
pass
... | Fixed too narrow error catching for reverse DNS calls | py |
diff --git a/deployutils/management/commands/upload_configs.py b/deployutils/management/commands/upload_configs.py
index <HASH>..<HASH> 100644
--- a/deployutils/management/commands/upload_configs.py
+++ b/deployutils/management/commands/upload_configs.py
@@ -42,8 +42,9 @@ class Command(BaseCommand):
action... | missing args after switch to argparse | py |
diff --git a/examples/sys_info.py b/examples/sys_info.py
index <HASH>..<HASH> 100644
--- a/examples/sys_info.py
+++ b/examples/sys_info.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
#
-# !!! Needs psutil installing:
+# !!! Needs psutil (+ dependencies) installing:
#
+# $ sudo apt-get install python-dev
# $ sudo pi... | Add note about python-dev dependency on installing psutil | py |
diff --git a/src/naarad/metrics/metric.py b/src/naarad/metrics/metric.py
index <HASH>..<HASH> 100644
--- a/src/naarad/metrics/metric.py
+++ b/src/naarad/metrics/metric.py
@@ -190,7 +190,7 @@ class Metric(object):
:param string granularity: aggregation granularity used for plots.
:return: string aggregate_time... | Adding check for granularity being None (Python none rather than string). | py |
diff --git a/jax/numpy/lax_numpy.py b/jax/numpy/lax_numpy.py
index <HASH>..<HASH> 100644
--- a/jax/numpy/lax_numpy.py
+++ b/jax/numpy/lax_numpy.py
@@ -1152,8 +1152,11 @@ def squeeze(a, axis: Union[int, Tuple[int, ...]] = None):
@_wraps(np.expand_dims)
def expand_dims(a, axis: Union[int, Tuple[int, ...]]):
- if isi... | Attempt to fix error in google3 import (#<I>) See #<I> | py |
diff --git a/blockstack/atlas.py b/blockstack/atlas.py
index <HASH>..<HASH> 100644
--- a/blockstack/atlas.py
+++ b/blockstack/atlas.py
@@ -1099,13 +1099,13 @@ def atlasdb_init( path, db, peer_seeds, peer_blacklist, validate=False, zonefile
if os.path.exists( path ):
log.debug("Atlas DB exists at %s" % pat... | use atlasdb_open to set the proper row factory | py |
diff --git a/core/sawtooth/validator_config.py b/core/sawtooth/validator_config.py
index <HASH>..<HASH> 100644
--- a/core/sawtooth/validator_config.py
+++ b/core/sawtooth/validator_config.py
@@ -295,7 +295,7 @@ class ValidatorDefaultConfig(sawtooth.config.Config):
# topological configuration
self['T... | Set InitialConnectivity to 0 by default This allows starting up a single validator. After this change, production/test networks with more than one validator should set InitialConnectivity to a value greater than 0. | py |
diff --git a/clients/python/girder_client/__init__.py b/clients/python/girder_client/__init__.py
index <HASH>..<HASH> 100644
--- a/clients/python/girder_client/__init__.py
+++ b/clients/python/girder_client/__init__.py
@@ -83,6 +83,9 @@ class HttpError(Exception):
self.url = url
self.method = method
... | Show response text in HTTPError string | py |
diff --git a/raven/transport/udp.py b/raven/transport/udp.py
index <HASH>..<HASH> 100644
--- a/raven/transport/udp.py
+++ b/raven/transport/udp.py
@@ -31,9 +31,9 @@ class BaseUDPTransport(Transport):
a v6 address if it's the only option.
"""
addresses = getaddrinfo(host, port)
+ v4_add... | init v4_address earlier | py |
diff --git a/src/txkube/_model.py b/src/txkube/_model.py
index <HASH>..<HASH> 100644
--- a/src/txkube/_model.py
+++ b/src/txkube/_model.py
@@ -126,20 +126,6 @@ def object_sort_key(obj):
-def _pvector_field(iface, invariant=None):
- class _CheckedIObjectPVector(CheckedPVector):
- __invariant__ = provider... | Guess I will not be resurrecting this after all. | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -99,6 +99,8 @@ def _linux_cpudata():
grains['cpu_model'] = val
elif key == 'flags':
grains['cpu_flags'] = val.split()
+ ... | Fedora Remix shows the cpu flags as Features | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@ with open(os.path.join(REQUIREMENT_DIR, "requirements.txt")) as f:
with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
tests_requires = [line.strip() for line in f if line.strip()]
-b... | Bump minimum pyinstaller version | py |
diff --git a/raiden/utils/http.py b/raiden/utils/http.py
index <HASH>..<HASH> 100644
--- a/raiden/utils/http.py
+++ b/raiden/utils/http.py
@@ -192,3 +192,8 @@ class JSONRPCExecutor(HTTPExecutor):
log.warning("Executor process: invalid response", command=self.command, error=ex)
return False
... | Added log for process executor stop | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
setup(
name='django-rq-jobs',
- version='0.1.0',
+ version='0.1.1',
author='Ilan Steemers',
author_email='koed00@g... | New pypi release <I> | py |
diff --git a/leadbutt.py b/leadbutt.py
index <HASH>..<HASH> 100644
--- a/leadbutt.py
+++ b/leadbutt.py
@@ -26,9 +26,6 @@ from docopt import docopt
import boto.ec2.cloudwatch
import yaml
-import logging
-logging.basicConfig(level=logging.DEBUG)
-
# emulate six.text_type based on https://docs.python.org/3/howto/py... | revert logging changes, not ready for that yet | py |
diff --git a/gitlab/objects.py b/gitlab/objects.py
index <HASH>..<HASH> 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1605,7 +1605,7 @@ class ProjectMergeRequest(GitlabObject):
GitlabConnectionError: If the server cannot be reached.
GitlabListError: If the server fails to perform ... | fix bug when retrieving changes for merge request Erroneously a merge request would return its commit when being queried for its changes. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ setup(
packages=find_packages(),
include_package_data=True,
install_requires=[
- 'etesync>=0.6.0',
+ 'etesync>=0.6.1',
'Radicale>=2.1.10',
]
) | Bump etesync dependency. | py |
diff --git a/neteria/server.py b/neteria/server.py
index <HASH>..<HASH> 100644
--- a/neteria/server.py
+++ b/neteria/server.py
@@ -40,6 +40,7 @@ You can run an example by running the following from the command line:
`python -m neteria.server`"""
import logging
+import threading
import uuid
from datetime import ... | Fixed an issue where the listener thread could crash silently if the middleware event_exectue failed. | py |
diff --git a/root_numpy/info.py b/root_numpy/info.py
index <HASH>..<HASH> 100644
--- a/root_numpy/info.py
+++ b/root_numpy/info.py
@@ -6,5 +6,5 @@
|_| \___/ \___/ \__|___|_| |_|\__,_|_| |_| |_| .__/ \__, | {0}
|_____| |_| |___/
"""
-__version__ = '4.7.0.dev0'
+__version__ =... | bump to <I>: pypi no longer allows reuploads | py |
diff --git a/ocrd_models/ocrd_models/ocrd_xml_base.py b/ocrd_models/ocrd_models/ocrd_xml_base.py
index <HASH>..<HASH> 100644
--- a/ocrd_models/ocrd_models/ocrd_xml_base.py
+++ b/ocrd_models/ocrd_models/ocrd_xml_base.py
@@ -1,3 +1,4 @@
+from os.path import exists
from lxml import etree as ET
from .constants import N... | raise clearer error if mets.xml does not exist | py |
diff --git a/bitshares/price.py b/bitshares/price.py
index <HASH>..<HASH> 100644
--- a/bitshares/price.py
+++ b/bitshares/price.py
@@ -218,6 +218,8 @@ class Price(dict, BlockchainInstance):
tmp = self["quote"]
self["quote"] = self["base"]
self["base"] = tmp
+ if "for_sale" in self and ... | Adjust "for_sale" when invert()-ing an Order Fixes #<I> | py |
diff --git a/karaage/conf/settings.py b/karaage/conf/settings.py
index <HASH>..<HASH> 100644
--- a/karaage/conf/settings.py
+++ b/karaage/conf/settings.py
@@ -27,7 +27,6 @@ DEFAULT_SHELL = '/bin/bash'
BOUNCED_SHELL = '/usr/local/sbin/bouncedemail'
INSTALLED_APPS = (
- 'django.contrib.auth',
'django.contrib.... | Remove django.contrib.auth from INSTALLED_APPS. db models it provides no longer required. Change-Id: I7bcc<I>d6d<I>efaaab0f<I>e<I>c<I>b<I>c<I>c<I> | py |
diff --git a/unittests.py b/unittests.py
index <HASH>..<HASH> 100644
--- a/unittests.py
+++ b/unittests.py
@@ -12,6 +12,7 @@
import sys
import os
import unittest
+import tempfile
import ahocorasick
try:
@@ -1432,7 +1433,7 @@ class TestLoadSave(TestAutomatonBase):
if os.path.isdir("/dev/shm"):
... | Get the temporary directory with the stdlib | py |
diff --git a/lib/bosh.py b/lib/bosh.py
index <HASH>..<HASH> 100644
--- a/lib/bosh.py
+++ b/lib/bosh.py
@@ -87,11 +87,12 @@ class BoshReleases:
release = self.releases[name]
with cd(release.release_dir):
release_info.update(self.releases[name].pre_create_tile())
- release_info['file'] = os.path.basename(re... | Add default release name and version. So it works when it doesn't create a bosh release. | py |
diff --git a/indra/tests/test_tas.py b/indra/tests/test_tas.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_tas.py
+++ b/indra/tests/test_tas.py
@@ -1,6 +1,8 @@
+from nose.plugins.attrib import attr
from indra.sources.tas import process_from_web
+@attr('slow')
def test_processor():
tp = process_from_we... | Add slow attribute to tas test | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.