diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pyipmi/errors.py b/pyipmi/errors.py
index <HASH>..<HASH> 100644
--- a/pyipmi/errors.py
+++ b/pyipmi/errors.py
@@ -38,10 +38,9 @@ class CompletionCodeError(Exception):
self.cc = cc
def __str__(self):
+ descr = 'unknown'
if self.cc in cc_err_desc.keys():
- descr=cc_... | refactored CompletionCodeError | py |
diff --git a/gwpy/timeseries/timeseries.py b/gwpy/timeseries/timeseries.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/timeseries.py
+++ b/gwpy/timeseries/timeseries.py
@@ -1418,18 +1418,17 @@ class TimeSeries(TimeSeriesBase):
raise ValueError('side must be one of left, right, or leftright')
... | In the taper() method: rather than build an array for the window function, which could be mostly ones, just directly multiply the output timeseries at the data points to be tapered | py |
diff --git a/ziggurat_foundations/models/services/resource_tree_postgres.py b/ziggurat_foundations/models/services/resource_tree_postgres.py
index <HASH>..<HASH> 100644
--- a/ziggurat_foundations/models/services/resource_tree_postgres.py
+++ b/ziggurat_foundations/models/services/resource_tree_postgres.py
@@ -81,11 +81... | tree: dummy operation not needed anymore | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -191,7 +191,6 @@ class PSHACalculator(base.HazardCalculator):
num_sources += len(sg.sources)
... | Removed forgotten pdb [skip hazardlib][demos] | py |
diff --git a/yfinance/__init__.py b/yfinance/__init__.py
index <HASH>..<HASH> 100644
--- a/yfinance/__init__.py
+++ b/yfinance/__init__.py
@@ -23,7 +23,7 @@ from __future__ import print_function
__version__ = "0.1.37"
__author__ = "Ran Aroussi"
-__all__ = ['download', 'Ticker', 'pdr_override']
+__all__ = ['download... | added Tickers to __all__ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ requires = [
setup(
name='amaascore',
- version='0.8.5',
+ version='0.8.6',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='https://github.... | AMAAS-<I> bumping version | py |
diff --git a/Example/PyDect200_Demo.py b/Example/PyDect200_Demo.py
index <HASH>..<HASH> 100755
--- a/Example/PyDect200_Demo.py
+++ b/Example/PyDect200_Demo.py
@@ -2,7 +2,7 @@
# -- coding: utf-8 --
try:
- from PyDect200.PyDect200 import PyDect200
+ from PyDect200 import PyDect200
except:
prin... | Fixes unicode print problem | py |
diff --git a/python_utils/time.py b/python_utils/time.py
index <HASH>..<HASH> 100644
--- a/python_utils/time.py
+++ b/python_utils/time.py
@@ -1,7 +1,12 @@
import six
+import time
+import typing
import datetime
+import itertools
+delta_type = typing.Union[datetime.timedelta, int, float]
+
# There might be a bett... | added timeout generator for retrying until a timeout has been reached | py |
diff --git a/py_technical_indicators/technical_indicators/accumulation_distribution.py b/py_technical_indicators/technical_indicators/accumulation_distribution.py
index <HASH>..<HASH> 100644
--- a/py_technical_indicators/technical_indicators/accumulation_distribution.py
+++ b/py_technical_indicators/technical_indicator... | Accidentally deleted a parens | py |
diff --git a/taskqueue/registered_task.py b/taskqueue/registered_task.py
index <HASH>..<HASH> 100644
--- a/taskqueue/registered_task.py
+++ b/taskqueue/registered_task.py
@@ -27,7 +27,13 @@ class Meta(type):
def __new__(meta, name, bases, class_dict):
cls = type.__new__(meta, name, bases, class_dict)
REGIS... | fix: actual backwards compatibility with python2 | py |
diff --git a/yatiml/util.py b/yatiml/util.py
index <HASH>..<HASH> 100644
--- a/yatiml/util.py
+++ b/yatiml/util.py
@@ -1,4 +1,4 @@
-import collections
+from collections import abc
from datetime import datetime
import typing
from typing import (
@@ -47,8 +47,8 @@ def is_generic_sequence(type_: Type) -> bool:
... | Put collections.abc back, it's not obsolete | py |
diff --git a/octodns/manager.py b/octodns/manager.py
index <HASH>..<HASH> 100644
--- a/octodns/manager.py
+++ b/octodns/manager.py
@@ -69,6 +69,7 @@ class Manager(object):
manager_config = self.config.get('manager', {})
max_workers = manager_config.get('max_workers', 1) \
if max_workers i... | Log max_workers, useful to know | py |
diff --git a/django_tenants/postgresql_backend/introspection.py b/django_tenants/postgresql_backend/introspection.py
index <HASH>..<HASH> 100644
--- a/django_tenants/postgresql_backend/introspection.py
+++ b/django_tenants/postgresql_backend/introspection.py
@@ -118,6 +118,8 @@ class DatabaseSchemaIntrospection(Databas... | Fixed a problem with the introspection | py |
diff --git a/tests/test_redmine.py b/tests/test_redmine.py
index <HASH>..<HASH> 100644
--- a/tests/test_redmine.py
+++ b/tests/test_redmine.py
@@ -419,7 +419,8 @@ class TestRedmineBackendArchive(TestCaseBackendArchive):
def setUp(self):
super().setUp()
- self.backend = Redmine(REDMINE_URL, api_to... | [tests] Modify redmine tests when fetching from archive This patch adds two different backend objects (one fetches data from remote a data source and the other one from an archive) in order to ensure that backend and method params are initialized in the same way independently from which method is called (fetch or fetc... | py |
diff --git a/stagpy/plates.py b/stagpy/plates.py
index <HASH>..<HASH> 100644
--- a/stagpy/plates.py
+++ b/stagpy/plates.py
@@ -65,7 +65,7 @@ def detect_plates_vzcheck(step, vz_thres_ratio=0):
limits.remove(phi)
k += 1
- return limits, nphi, dvphi, vphi_surf
+ return limits, dvphi, vphi... | plates.detect_plates_vzcheck doesn't return nphi | py |
diff --git a/djcelery/admin.py b/djcelery/admin.py
index <HASH>..<HASH> 100644
--- a/djcelery/admin.py
+++ b/djcelery/admin.py
@@ -16,7 +16,7 @@ from celery import current_app
from celery import states
from celery import registry
from celery.task.control import broadcast, revoke, rate_limit
-from celery.utils import... | Fixes import error Import turns out to be broken since commit f5f8b<I>d<I> in celery | py |
diff --git a/alembic/versions/2ea9623b21fa_add_an_active_field_to_filter.py b/alembic/versions/2ea9623b21fa_add_an_active_field_to_filter.py
index <HASH>..<HASH> 100644
--- a/alembic/versions/2ea9623b21fa_add_an_active_field_to_filter.py
+++ b/alembic/versions/2ea9623b21fa_add_an_active_field_to_filter.py
@@ -20,7 +20,... | User server_default instead of default to make this whole thing work. | py |
diff --git a/pyinfra_cli/inventory/__init__.py b/pyinfra_cli/inventory/__init__.py
index <HASH>..<HASH> 100644
--- a/pyinfra_cli/inventory/__init__.py
+++ b/pyinfra_cli/inventory/__init__.py
@@ -9,7 +9,6 @@ import six
from pyinfra import logger, pseudo_inventory
from pyinfra.api.inventory import Inventory
-
from p... | Allow binary strings/objects as a data type. | py |
diff --git a/attitude/coordinates/__init__.py b/attitude/coordinates/__init__.py
index <HASH>..<HASH> 100644
--- a/attitude/coordinates/__init__.py
+++ b/attitude/coordinates/__init__.py
@@ -17,12 +17,12 @@ def cartesian(spherical):
return x,y,z
def centered(coordinates):
- """ Centers coordinate distributio... | Removed inconvenient dimensionality test | py |
diff --git a/pinky/broker/server.py b/pinky/broker/server.py
index <HASH>..<HASH> 100644
--- a/pinky/broker/server.py
+++ b/pinky/broker/server.py
@@ -90,7 +90,7 @@ class BrokerServer(BaseServer):
lambda res: data.update(res['message'])
) for node in self._connections.values()
]
-... | removed consumeErrors param | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ requirements = (
setup(
name='combine',
- version='0.0.2.dev0',
+ version='0.0.2',
description='A helpful, simple static site generator.',
long_description=long_description,
long_des... | Preparing release <I> | py |
diff --git a/nbserverproxy/handlers.py b/nbserverproxy/handlers.py
index <HASH>..<HASH> 100644
--- a/nbserverproxy/handlers.py
+++ b/nbserverproxy/handlers.py
@@ -44,6 +44,7 @@ class WebSocketHandlerMixin(websocket.WebSocketHandler):
# super get is not async
super().get(*args, **kwargs)
+
class Loc... | Not use None as body for POST requests POST requests can not have None as body, so instead use an empty string. | py |
diff --git a/python/ray/air/_internal/tensorflow_utils.py b/python/ray/air/_internal/tensorflow_utils.py
index <HASH>..<HASH> 100644
--- a/python/ray/air/_internal/tensorflow_utils.py
+++ b/python/ray/air/_internal/tensorflow_utils.py
@@ -47,6 +47,13 @@ def convert_pandas_to_tf_tensor(
# them. If the colum... | [Ray Dataset] fix the type infer of pd.dataframe (when dtype is object) | py |
diff --git a/sos/plugins/dnf.py b/sos/plugins/dnf.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/dnf.py
+++ b/sos/plugins/dnf.py
@@ -24,6 +24,21 @@ class DNFPlugin(Plugin, RedHatPlugin):
("history-info", "detailed transaction history", "slow", False),
]
+ def get_modules_info(self, module_file):
+ ... | [dnf] collect installed modules and info about them collect "dnf module list --installed" and for each module, get info about it Resolves: #<I> | py |
diff --git a/schwimmbad/tests/test_mpi.py b/schwimmbad/tests/test_mpi.py
index <HASH>..<HASH> 100644
--- a/schwimmbad/tests/test_mpi.py
+++ b/schwimmbad/tests/test_mpi.py
@@ -19,8 +19,6 @@ def _callback(x):
@pytest.mark.skip(True, reason="WTF")
def test_mpi():
- assert MPI.COMM_WORLD.Get_rank() == 0
-
pool ... | don't check commworld | py |
diff --git a/tests/filters/filter_list.py b/tests/filters/filter_list.py
index <HASH>..<HASH> 100644
--- a/tests/filters/filter_list.py
+++ b/tests/filters/filter_list.py
@@ -5,6 +5,7 @@
from __future__ import unicode_literals
import os
+import codecs
import tempfile
import unittest
@@ -21,15 +22,15 @@ class Ob... | Improved compatibility of filter tests with Python 3 #<I> | py |
diff --git a/ssbio/pipeline/gempro.py b/ssbio/pipeline/gempro.py
index <HASH>..<HASH> 100644
--- a/ssbio/pipeline/gempro.py
+++ b/ssbio/pipeline/gempro.py
@@ -478,7 +478,7 @@ class GEMPRO(Object):
uniprot_mappings = g.protein.filter_sequences(UniProtProp)
for uniprot_prop in uniprot_mappings:
... | Bugfix for ID in dataframes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -89,7 +89,7 @@ setup(
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
- 'Programm... | specifying Python version as <I> now | py |
diff --git a/wal_e/worker/pg/psql_worker.py b/wal_e/worker/pg/psql_worker.py
index <HASH>..<HASH> 100644
--- a/wal_e/worker/pg/psql_worker.py
+++ b/wal_e/worker/pg/psql_worker.py
@@ -1,5 +1,6 @@
import csv
import datetime
+import os
from subprocess import PIPE
@@ -41,10 +42,13 @@ def psql_csv_run(sql_command, er... | Append to PGOPTIONS rather than overriding it This way other user-set options can be preserved. | py |
diff --git a/tests/test_factories_csp.py b/tests/test_factories_csp.py
index <HASH>..<HASH> 100644
--- a/tests/test_factories_csp.py
+++ b/tests/test_factories_csp.py
@@ -18,6 +18,4 @@ class TestSAT(unittest.TestCase):
class TestCircuits(unittest.TestCase):
def test_multiplication_circuit(self):
csp = pr... | Remove erroneous print statement | py |
diff --git a/performance/venv.py b/performance/venv.py
index <HASH>..<HASH> 100644
--- a/performance/venv.py
+++ b/performance/venv.py
@@ -162,7 +162,11 @@ def create_virtualenv():
root = ROOT_DIR
venv_name = virtualenv_name()
venv_path = os.path.join(root, 'venv', venv_name)
- venv_python = os.path.j... | Issue #5: Minimum fix for venv to support Windows | py |
diff --git a/termdown.py b/termdown.py
index <HASH>..<HASH> 100755
--- a/termdown.py
+++ b/termdown.py
@@ -49,6 +49,15 @@ def setup(stdscr):
return (curses_lock, input_queue, quit_event)
+class CursesReturnValue(Exception):
+ """
+ curses.wrapper() does not provide the return value of the called
+ fun... | print time elapsed after exiting stopwatch mode closes #5 | py |
diff --git a/test/test_api.py b/test/test_api.py
index <HASH>..<HASH> 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -74,6 +74,7 @@ class ActiveMatch(unittest.TestCase) :
self.assertRaises(ValueError, matcher._checkRecordPairType, ())
self.assertRaises(ValueError, matcher._checkRecordPairType, (1,2... | remove check for user input that will never be reached | py |
diff --git a/pyuntl/untldoc.py b/pyuntl/untldoc.py
index <HASH>..<HASH> 100644
--- a/pyuntl/untldoc.py
+++ b/pyuntl/untldoc.py
@@ -133,28 +133,15 @@ def untldict2py(untl_dict):
)
# Create the UNTL element that will have children elements
# added to it.
- ... | Remove extraneous elif cons=ditions from untldict2py func. | py |
diff --git a/green/config.py b/green/config.py
index <HASH>..<HASH> 100644
--- a/green/config.py
+++ b/green/config.py
@@ -246,7 +246,9 @@ def parseArguments(argv=None): # pragma: no cover
action="store_true",
help=(
"Instead of capturing the stdout and stderr and presenting ... | Make it explicit that we don't capture output except from tests. Resolves #<I>. | py |
diff --git a/pinax/wiki/urls.py b/pinax/wiki/urls.py
index <HASH>..<HASH> 100644
--- a/pinax/wiki/urls.py
+++ b/pinax/wiki/urls.py
@@ -1,20 +1,18 @@
import os
-from django.conf.urls import patterns, url
+from django.conf.urls import url
from .conf import settings
from .views import index, page, edit, file_downlo... | Fix for patterns() being deprecated and now removed in Django <I> | py |
diff --git a/src/sos/actions.py b/src/sos/actions.py
index <HASH>..<HASH> 100644
--- a/src/sos/actions.py
+++ b/src/sos/actions.py
@@ -283,12 +283,12 @@ class SoS_ExecuteScript:
sys.stdout.write(child.before.decode() + '\n')
except pexpect.EOF:
... | Get the exit code of pexpect-executed process. #<I> | py |
diff --git a/openquake/commands/plot.py b/openquake/commands/plot.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/plot.py
+++ b/openquake/commands/plot.py
@@ -274,9 +274,9 @@ def make_figure_rupture_info(extractors, what):
info = ex.get(what)
fig, ax = plt.subplots()
ax.grid(True)
- sitecol = ... | Removed basemap in plot rupture_info Former-commit-id: <I>a3c4d2b<I>ffc8dc7bb4ad<I>f1ac<I>a<I>b | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -26,6 +26,7 @@ from __future__ import print_function
import django
import os
+import subprocess
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@@ -281,8 +282,10... | Fixing the deprecated library function. os.popen() is deprecated since version <I>. Resolved with use of subprocess module. Change-Id: I6ac6eb<I>dd3d<I>b<I>c<I>c1cb<I>bd8bff<I> Partial-Bug: #<I> | py |
diff --git a/librosa/util/_nnls.py b/librosa/util/_nnls.py
index <HASH>..<HASH> 100644
--- a/librosa/util/_nnls.py
+++ b/librosa/util/_nnls.py
@@ -54,7 +54,7 @@ __all__ = ['nnls']
@jit(nopython=True)
-def _nnls(A, B, rho, eps_abs=1e-6, eps_rel=1e-4, max_iter=250):
+def _nnls(A, B, rho, eps_abs=1e-6, eps_rel=1e-4, ... | increased maxiter in nnls [ci skip] | py |
diff --git a/tests/btb/test_hyper_parameter.py b/tests/btb/test_hyper_parameter.py
index <HASH>..<HASH> 100644
--- a/tests/btb/test_hyper_parameter.py
+++ b/tests/btb/test_hyper_parameter.py
@@ -188,4 +188,4 @@ class TestHyperparameter(unittest.TestCase):
invalid_param_types = ['a', 0, object(), 'integer', 'fo... | Null param_range should be passed as [None] | py |
diff --git a/hdlcontroller.py b/hdlcontroller.py
index <HASH>..<HASH> 100755
--- a/hdlcontroller.py
+++ b/hdlcontroller.py
@@ -347,7 +347,7 @@ if __name__ == '__main__':
if args['quiet']:
while True:
- pass
+ sleep(1)
else:
while True:
hdlc_c.send(args['message']) | make the main thread sleep in quiet mode | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -108,7 +108,10 @@ except ImportError:
OnlineHelp = None # analysis:ignore
from spyderlib.plugins.explorer import Explorer
from spyderlib.plugins.externalconsole import Exte... | Disable IPython plugin import if IPython is not installed | py |
diff --git a/lib/tri/form/__init__.py b/lib/tri/form/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/tri/form/__init__.py
+++ b/lib/tri/form/__init__.py
@@ -47,7 +47,7 @@ def bool_parse(string_value):
def foreign_key_factory(model_field, **kwargs):
kwargs.setdefault('choices', model_field.foreign_related_fiel... | Fix form from django model issues | py |
diff --git a/YesssSMS/CLI.py b/YesssSMS/CLI.py
index <HASH>..<HASH> 100644
--- a/YesssSMS/CLI.py
+++ b/YesssSMS/CLI.py
@@ -266,7 +266,7 @@ class CLI:
self.recipient = recipient
self.message = message
- self.yessssms.send(default_recipient or recipient, self.message)
+ self.yessssms.sen... | fix default recipient bug we want to send to command line arguments if provided | py |
diff --git a/python_modules/dagster/dagster/core/execution/plan/active.py b/python_modules/dagster/dagster/core/execution/plan/active.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/execution/plan/active.py
+++ b/python_modules/dagster/dagster/core/execution/plan/active.py
@@ -136,7 +136,7 @@ c... | Migrate DagsterUnknownStepStateError to crag (#<I>) | py |
diff --git a/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py b/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
+++ b/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
@@ -173,6 +173,7 ... | Added namespace as a template field in the KPO. (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ requirements = (
setup(
name='combine',
- version='0.0.25.dev0',
+ version='0.0.25',
description='A helpful, simple static site generator.',
long_description=long_description,
long_d... | Preparing release <I> | py |
diff --git a/salt/modules/virt.py b/salt/modules/virt.py
index <HASH>..<HASH> 100644
--- a/salt/modules/virt.py
+++ b/salt/modules/virt.py
@@ -318,9 +318,9 @@ def get_disks(vm_):
'file': source.getAttribute('file')}
for dev in disks:
try:
- disks[dev].update(yaml.safe_load(subp... | Bugfix problems with spaces in filenames Also disable shell=True for security purposes | py |
diff --git a/client/brain.py b/client/brain.py
index <HASH>..<HASH> 100644
--- a/client/brain.py
+++ b/client/brain.py
@@ -61,13 +61,15 @@ class Brain(object):
"""
for module in self.modules:
for text in texts:
-
if module.isValid(text):
+ self._logger.... | Improved logging in brain.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ install_requires = [
setup(
name='nodeconductor',
- version='0.8.0',
+ version='0.9.0.dev0',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='https://github.com/op... | Started development of new version: <I>.dev0 | py |
diff --git a/spyderlib/utils/module_completion.py b/spyderlib/utils/module_completion.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/module_completion.py
+++ b/spyderlib/utils/module_completion.py
@@ -216,7 +216,9 @@ if __name__ == "__main__":
assert sorted(module_completion('from xml.etree import '), key=... | utils/module_completion: Add a test to see if our additions are working correctly | py |
diff --git a/salt/utils/vt.py b/salt/utils/vt.py
index <HASH>..<HASH> 100644
--- a/salt/utils/vt.py
+++ b/salt/utils/vt.py
@@ -383,15 +383,17 @@ class Terminal(object):
# Set the terminal size
self.child_fd = self.stdin
- try:
- self.setwinsize(self.... | Only try to set the terminal size if parent is a TTY | py |
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/tests/test_mainwindow.py
+++ b/spyder/app/tests/test_mainwindow.py
@@ -278,8 +278,17 @@ def main_window(request, tmpdir):
f = path.join(filename)
abs_file... | Testing: Check that we don't display imported symbols in the Outline | py |
diff --git a/libusb1.py b/libusb1.py
index <HASH>..<HASH> 100644
--- a/libusb1.py
+++ b/libusb1.py
@@ -740,7 +740,7 @@ def get_iso_packet_list(transfer_p):
return _get_iso_packet_list(transfer_p.contents)
def _get_iso_packet_buffer(transfer, offset, length):
- return string_at(addressof(transfer.buffer) + of... | Fix string declaration. transfer.buffer is a void *, which is an address already. | py |
diff --git a/troposphere/ecs.py b/troposphere/ecs.py
index <HASH>..<HASH> 100644
--- a/troposphere/ecs.py
+++ b/troposphere/ecs.py
@@ -82,6 +82,13 @@ def launch_type_validator(x):
return x
+class ServiceRegistry(AWSProperty):
+ props = {
+ 'Port': (integer, False),
+ 'RegistryArn': (basestring... | Add ServiceRegistries to ECS::Service | py |
diff --git a/src/saml2/validate.py b/src/saml2/validate.py
index <HASH>..<HASH> 100644
--- a/src/saml2/validate.py
+++ b/src/saml2/validate.py
@@ -1,7 +1,7 @@
import calendar
from six.moves.urllib.parse import urlparse
import re
-import time_util
+from saml2 import time_util
import struct
import base64 | Fix relative import fialure for python3 Relative imports don't quite work anymore in python3. | py |
diff --git a/pbs.py b/pbs.py
index <HASH>..<HASH> 100644
--- a/pbs.py
+++ b/pbs.py
@@ -34,7 +34,7 @@ from functools import partial
-__version__ = "0.90"
+__version__ = "0.91"
__project_url__ = "https://github.com/amoffat/pbs"
IS_PY3 = sys.version_info[0] == 3 | command baking! see readme. <I> | py |
diff --git a/awslimitchecker/services/ec2.py b/awslimitchecker/services/ec2.py
index <HASH>..<HASH> 100644
--- a/awslimitchecker/services/ec2.py
+++ b/awslimitchecker/services/ec2.py
@@ -756,7 +756,7 @@ class _Ec2Service(_AwsService):
limit_type='AWS::EC2::EIP',
limit_subtype='AWS::EC2::VPC',
... | update quota names for EIPs | py |
diff --git a/pandas/tests/series/test_indexing.py b/pandas/tests/series/test_indexing.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/series/test_indexing.py
+++ b/pandas/tests/series/test_indexing.py
@@ -854,11 +854,15 @@ class TestSeriesIndexing(TestData):
s = Series(np.random.randn(10), index=lrange(0, 20... | TST: remove warnings, xref #<I> (#<I>) | py |
diff --git a/openstack_dashboard/dashboards/admin/volumes/volume_types/extras/views.py b/openstack_dashboard/dashboards/admin/volumes/volume_types/extras/views.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/admin/volumes/volume_types/extras/views.py
+++ b/openstack_dashboard/dashboards/admin/volume... | Edit Extra Spec Value Fail This patch fixes the modal-header content when the form is invalid. A wrong message was shown when the user didn't provide a valid value for this form. Change-Id: I6de<I>ad3a<I>abd7b<I>c<I>bd4c4fd7d5a<I> Closes-bug: #<I> | py |
diff --git a/registrasion/controllers/item.py b/registrasion/controllers/item.py
index <HASH>..<HASH> 100644
--- a/registrasion/controllers/item.py
+++ b/registrasion/controllers/item.py
@@ -84,7 +84,7 @@ class ItemController(object):
aggregating like products from across multiple invoices.
... | Filters items_purchased by category. Fixes #<I> | py |
diff --git a/anora/__init__.py b/anora/__init__.py
index <HASH>..<HASH> 100644
--- a/anora/__init__.py
+++ b/anora/__init__.py
@@ -2,4 +2,4 @@
Anora is a simple_tag for Django that determines whether or not a word should have an "a" or "an" in front of it. Adds either one of these depending on the phoentic value of th... | Updating to <I> | py |
diff --git a/xray/test/test_backends.py b/xray/test/test_backends.py
index <HASH>..<HASH> 100644
--- a/xray/test/test_backends.py
+++ b/xray/test/test_backends.py
@@ -675,6 +675,7 @@ class GenericNetCDFDataTest(CFEncodedDataTest, Only32BitTypes, TestCase):
@requires_h5netcdf
+@requires_netCDF4
class H5NetCDFDataT... | Fix failing test on Travis Not sure how this suddenly showed up. | py |
diff --git a/py/h2o_cmd.py b/py/h2o_cmd.py
index <HASH>..<HASH> 100644
--- a/py/h2o_cmd.py
+++ b/py/h2o_cmd.py
@@ -89,7 +89,7 @@ def runNNet(node=None, parseResult=None, timeoutSecs=600, noPoll=False, **kwargs
data_key = parseResult['destination_key']
return node.neural_net(data_key=data_key, timeoutSecs=time... | missing noPoll=True in runGBM | py |
diff --git a/rest_framework_json_api/renderers.py b/rest_framework_json_api/renderers.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/renderers.py
+++ b/rest_framework_json_api/renderers.py
@@ -29,6 +29,8 @@ class JSONRenderer(renderers.JSONRenderer):
}
"""
+ media_type = 'application/vnd.ap... | Override media_type in renderers.JSONRenderer as required by JSON API <I> spec | py |
diff --git a/cherrypy/_cpserver.py b/cherrypy/_cpserver.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cpserver.py
+++ b/cherrypy/_cpserver.py
@@ -99,7 +99,10 @@ class Server(object):
bind_addr = self.httpservers[httpserver]
if isinstance(bind_addr, tuple):
wait_for_free_port(*bind_addr)
... | Fix for #<I> (misleading log on socket_host="") for CP <I> and CP 3. | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -3319,7 +3319,11 @@ def makedirs_(path,
'''
# walk up the directory structure until we find the first existing
# directory
- dirname = os.path.abspath(path)
+ ... | Appending trailing slash if not present | py |
diff --git a/sacred/host_info.py b/sacred/host_info.py
index <HASH>..<HASH> 100644
--- a/sacred/host_info.py
+++ b/sacred/host_info.py
@@ -11,7 +11,7 @@ from sacred.utils import optional_kwargs_decorator
__sacred__ = True # marks files that should be filtered from stack traces
-__all__ = ['host_info_gatherers', '... | host_info was still being used in host_info.py | py |
diff --git a/devassistant/assistant_base.py b/devassistant/assistant_base.py
index <HASH>..<HASH> 100644
--- a/devassistant/assistant_base.py
+++ b/devassistant/assistant_base.py
@@ -3,6 +3,8 @@ import argparse
from devassistant import settings
class AssistantBase(object):
+ """WARNING: if assigning subassistant... | Warn, but we still need to solve this systematically | py |
diff --git a/xdis/unmarshal.py b/xdis/unmarshal.py
index <HASH>..<HASH> 100644
--- a/xdis/unmarshal.py
+++ b/xdis/unmarshal.py
@@ -57,7 +57,11 @@ def compat_u2s(u):
# found it and this code via
# https://www.peterbe.com/plog/unicode-to-ascii where it is a
# dead link. That can potentially do ... | Take 2 in unicode/ASCII ... Try to convert to ascii, but if that doesn't work, leave as unicode. | py |
diff --git a/gromacs/__init__.py b/gromacs/__init__.py
index <HASH>..<HASH> 100644
--- a/gromacs/__init__.py
+++ b/gromacs/__init__.py
@@ -333,12 +333,6 @@ def enable_gromacs_warnings(categories=None):
filter_gromacs_warnings('always', categories=categories)
-# define the testing framework
-from numpy.testing.... | removed spurious nosetest import All tests are based on pytest, not nosetest anymore. | py |
diff --git a/parsl/utils.py b/parsl/utils.py
index <HASH>..<HASH> 100644
--- a/parsl/utils.py
+++ b/parsl/utils.py
@@ -25,6 +25,39 @@ def get_version():
return version
+def get_all_checkpoints():
+ """Finds the checkpoints from all last runs.
+
+ Note that checkpoints are incremental, and this helper will no... | Add get_all_checkpoints helper to return all checkpoints in runinfo/ | py |
diff --git a/AndroidViewClient/setup.py b/AndroidViewClient/setup.py
index <HASH>..<HASH> 100644
--- a/AndroidViewClient/setup.py
+++ b/AndroidViewClient/setup.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python
-from distutils.core import setup
+from setuptools import setup
setup(name='AndroidViewClient',
- version='4.4... | Updated setup.py for version <I> | py |
diff --git a/smartystreets/client.py b/smartystreets/client.py
index <HASH>..<HASH> 100644
--- a/smartystreets/client.py
+++ b/smartystreets/client.py
@@ -120,7 +120,7 @@ class Client(object):
'x-accept-keypair': 'true' if self.accept_keypair else 'false',
}
if not self.logging:
- ... | Fix logging header value If logging is `False` then the `x-suppress-logging` should be `true` | py |
diff --git a/btb/tuning/tuner.py b/btb/tuning/tuner.py
index <HASH>..<HASH> 100644
--- a/btb/tuning/tuner.py
+++ b/btb/tuning/tuner.py
@@ -30,6 +30,9 @@ class Tuner(object):
self.grid_size = gridding
self._define_grid()
+ self.X = np.array([])
+ self.y = np.array([])
+
def... | Resolve #<I>: 'GP' object has no attribute 'X' | py |
diff --git a/examples/multizone_shimmer.py b/examples/multizone_shimmer.py
index <HASH>..<HASH> 100644
--- a/examples/multizone_shimmer.py
+++ b/examples/multizone_shimmer.py
@@ -30,12 +30,7 @@ def main():
if strip != None:
print("Selecting " + strip.get_label())
- #%h, s, v, k = l.get_color_zone... | Updated to accommodate new MultiZone get_color_zones behavior | py |
diff --git a/zimsoap/zobjects.py b/zimsoap/zobjects.py
index <HASH>..<HASH> 100644
--- a/zimsoap/zobjects.py
+++ b/zimsoap/zobjects.py
@@ -242,6 +242,11 @@ class Identity(ZObject):
o.import_node(node)
return o
+ def is_default(self):
+ """ Is it the default identity ? """
+ retu... | Can now determine if an identity is the default | py |
diff --git a/visidata/sheets.py b/visidata/sheets.py
index <HASH>..<HASH> 100644
--- a/visidata/sheets.py
+++ b/visidata/sheets.py
@@ -1016,7 +1016,7 @@ Sheet.addCommand('$', 'type-currency', 'cursorCol.type = currency', 'set type of
Sheet.addCommand('%', 'type-float', 'cursorCol.type = float', 'set type of current co... | [doc nfc] fix helpstr for open-cell | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,7 @@ sys.path.append('Tests');
requires = [
'pyserial >= 2.6',
+ 'pycrypto >= 2.6',
]
setup(name = 'pyhsm', | Also depends on pycrypto. | py |
diff --git a/honeybadger/core.py b/honeybadger/core.py
index <HASH>..<HASH> 100644
--- a/honeybadger/core.py
+++ b/honeybadger/core.py
@@ -2,11 +2,12 @@ import urllib2
import sys
import traceback
import json
+
class Honeybadger(object):
def __init__(self, *args, **kwargs):
# TODO: move into separate C... | removed test API key and made it configurable from honeybadger.configure | py |
diff --git a/salt/states/cron.py b/salt/states/cron.py
index <HASH>..<HASH> 100644
--- a/salt/states/cron.py
+++ b/salt/states/cron.py
@@ -32,9 +32,10 @@ Is changed to this:
Then the existing cron will be updated, but if the cron command is changed,
then a new cron job will be added to the user's crontab.
'''
-
+# I... | When a cron with trailing whitespace is sent in it fails to match This strip will fix #<I> | py |
diff --git a/src/diamond/server.py b/src/diamond/server.py
index <HASH>..<HASH> 100644
--- a/src/diamond/server.py
+++ b/src/diamond/server.py
@@ -124,7 +124,8 @@ class Server(object):
# Signals
#######################################################################
- signal.signal(signal.SIG... | Do not set signal action for SIGHUP on Windows SIGHUP is not available on Windows, so lets skip it over. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,8 @@ required = [
'dateparser',
'iso8601',
'python-dateutil',
- 'ruamel.yaml'
+ 'ruamel.yaml',
+ 'tzlocal'
]
setup( | Added tzlocal as setup requirement | py |
diff --git a/pymouse/windows.py b/pymouse/windows.py
index <HASH>..<HASH> 100644
--- a/pymouse/windows.py
+++ b/pymouse/windows.py
@@ -14,7 +14,7 @@
#along with this program. If not, see <http://www.gnu.org/licenses/>.
from ctypes import *
-import win32api,win32con
+import win32api, win32con
from base import PyMo... | Adding a space for prettiness | py |
diff --git a/sandstone/apps/filebrowser/posixfs.py b/sandstone/apps/filebrowser/posixfs.py
index <HASH>..<HASH> 100644
--- a/sandstone/apps/filebrowser/posixfs.py
+++ b/sandstone/apps/filebrowser/posixfs.py
@@ -130,6 +130,8 @@ class PosixFS():
continue
if parts[-1] != '.' and parts[-1] != ... | fix trailing slashes and file permissions | py |
diff --git a/productmd/common.py b/productmd/common.py
index <HASH>..<HASH> 100644
--- a/productmd/common.py
+++ b/productmd/common.py
@@ -480,7 +480,7 @@ class SortedConfigParser(ConfigParser):
ConfigParser.__init__(self, *args, **kwargs)
else:
kwargs["dict_type"] = SortedDict
- ... | Correctly call parent of SortedConfigParser on Python 3 The first argument to super() should be current class, not the parent. | py |
diff --git a/thefuck/logs.py b/thefuck/logs.py
index <HASH>..<HASH> 100644
--- a/thefuck/logs.py
+++ b/thefuck/logs.py
@@ -106,7 +106,7 @@ def how_to_configure_alias(configuration_details):
if configuration_details.can_configure_automatically:
print(
- u"Or run {bold}fuck{reset} s... | fixed grammar on how to configure message (#<I>) | py |
diff --git a/easyaudit/signals.py b/easyaudit/signals.py
index <HASH>..<HASH> 100644
--- a/easyaudit/signals.py
+++ b/easyaudit/signals.py
@@ -94,6 +94,16 @@ def m2m_changed(sender, instance, action, reverse, model, pk_set, using, **kwarg
event_type = CRUDEvent.M2M_CHANGE_REV
else:
ev... | Set user in m2m_changed signal | py |
diff --git a/pyqode/core/styles/darcula.py b/pyqode/core/styles/darcula.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/styles/darcula.py
+++ b/pyqode/core/styles/darcula.py
@@ -40,13 +40,13 @@ class DarculaStyle(Style):
Literal.String.Doc: '#A5C261 ',
Name.Attribute: '#800080',
Name.Builtin... | Darcula style: fix builtin color and make function names look different than class names | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -1025,7 +1025,13 @@ def replace(path,
This is a pure Python implementation that wraps Python's :py:func:`~re.sub`.
:param path: Filesystem path to the file to be edit... | #<I> - attempt at making use of pattern in file.replace a bit more clear. | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -1072,9 +1072,11 @@ def main():
# It must run before any of the other name table related checks.
def family_with_spaces(value):
- FAMILY_WITH_SPACES_... | add exceptions for 'Amatic SC' and 'Press Start 2P' (issue #<I> and issue #<I>) | py |
diff --git a/py/h2o_cmd.py b/py/h2o_cmd.py
index <HASH>..<HASH> 100644
--- a/py/h2o_cmd.py
+++ b/py/h2o_cmd.py
@@ -183,21 +183,6 @@ def runRFTreeView(node=None, n=None, data_key=None, model_key=None, timeoutSecs=
if not node: node = h2o.nodes[0]
return node.random_forest_treeview(n, data_key, model_key, timeo... | remove some old comments on params | py |
diff --git a/bin/diversity.py b/bin/diversity.py
index <HASH>..<HASH> 100755
--- a/bin/diversity.py
+++ b/bin/diversity.py
@@ -159,9 +159,8 @@ def handle_program_options():
parser.add_argument("--save_calculations",
help="Path and name of text file to store the calculated "
... | Changes --show_significance in diversity.py to --suppress_stats. The program calculates and displays significance calculations by default, so making the option "suppress_stats" instead is more user friendly. Now users specify the option if they do not want to see statistical comparisons. | py |
diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/rsa_key.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/rsa_key.py
index <HASH>..<HASH> 100644
--- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/rsa_key.py
+++ b/sdk/keyvault/azure-key... | [KV] Correctly fetch private RSA key material (#<I>) | py |
diff --git a/emirdrp/requirements.py b/emirdrp/requirements.py
index <HASH>..<HASH> 100644
--- a/emirdrp/requirements.py
+++ b/emirdrp/requirements.py
@@ -86,7 +86,7 @@ class MasterSpectralFlatFieldRequirement(Requirement):
class MasterSkyRequirement(Requirement):
def __init__(self):
super(MasterSkyRequi... | Modify comment of MasterSkyRequirement | py |
diff --git a/modeltranslation/admin.py b/modeltranslation/admin.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/admin.py
+++ b/modeltranslation/admin.py
@@ -37,17 +37,17 @@ class TranslationAdminBase(object):
css_classes = field.widget.attrs.get('class', '').split(' ')
css_classes.append... | FIXED: Optional default language fields don't get the correct css class. | py |
diff --git a/hydpy/core/parametertools.py b/hydpy/core/parametertools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/parametertools.py
+++ b/hydpy/core/parametertools.py
@@ -571,7 +571,10 @@ class MultiParameter(Parameter):
nested list. If the compression fails, a
:class:`~exceptions.NotImplementedE... | Use "nan" for string representations of MultiParameter instances with None values | py |
diff --git a/pyphantom/flex.py b/pyphantom/flex.py
index <HASH>..<HASH> 100755
--- a/pyphantom/flex.py
+++ b/pyphantom/flex.py
@@ -385,6 +385,9 @@ class Phantom(object):
return parse_response(response)
+ except AttributeError:
+ logger.warn('Trying to send data without connection'... | Warn if we try to send without a socket | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@ if sys.argv[-1] == 'test':
'{ echo \'\n\033[1m\033[91mFAILURE\033[0m: '
'Test coverage incomplete.\'&&'
'exit 1; }')
+ tests = ('&& grep ^FAILED test.log || ... | making sure we fail on test failures | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.