diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,6 @@ requires = [
'sqlalchemy',
'Flask-SQLAlchemy',
'Flask-Script==0.5.3',
- 'Flask-Alembic',
]
if sys.version_info[0:2] < (2, 7):
@@ -59,7 +58,4 @@ setup(name='coaster',
zip_safe=True,... | Don't depend on Flask-Alembic here. | py |
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py
index <HASH>..<HASH> 100644
--- a/alot/buffers/thread.py
+++ b/alot/buffers/thread.py
@@ -180,7 +180,7 @@ class ThreadBuffer(Buffer):
def set_focus(self, pos):
"Set the focus in the underlying body widget."
logging.debug('setting focus ... | valign message to top of screen (#<I>) | py |
diff --git a/superset/security/manager.py b/superset/security/manager.py
index <HASH>..<HASH> 100644
--- a/superset/security/manager.py
+++ b/superset/security/manager.py
@@ -50,6 +50,7 @@ from superset.utils.core import DatasourceName
if TYPE_CHECKING:
from superset.common.query_context import QueryContext
... | chore(mypy): Fixing can_access_database types (#<I>) | py |
diff --git a/src/psd_tools/decoder/actions.py b/src/psd_tools/decoder/actions.py
index <HASH>..<HASH> 100644
--- a/src/psd_tools/decoder/actions.py
+++ b/src/psd_tools/decoder/actions.py
@@ -110,7 +110,7 @@ def decode_ref(key, fp):
ostype = fp.read(4)
decode_ostype = get_reference_ostype_decode_func... | Fix incorrect conditional when attempting to decode references. | py |
diff --git a/dynaphopy/__init__.py b/dynaphopy/__init__.py
index <HASH>..<HASH> 100644
--- a/dynaphopy/__init__.py
+++ b/dynaphopy/__init__.py
@@ -1,4 +1,4 @@
-__version__ = '1.14.7'
+__version__ = '1.15'
import numpy as np
import matplotlib.pyplot as plt
@@ -261,8 +261,8 @@ class Quasiparticle:
sup_lim ... | Fix bug in plot renormalized phonon dispersion | py |
diff --git a/pypsa/io.py b/pypsa/io.py
index <HASH>..<HASH> 100644
--- a/pypsa/io.py
+++ b/pypsa/io.py
@@ -753,11 +753,13 @@ def import_series_from_dataframe(network, dataframe, cls_name, attr):
logger.warning(f"Components {diff} for attribute {attr} of {cls_name} "
f"are not in main co... | small follow-up of #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,11 @@ import os
import sys
from setuptools import setup
+
+if sys.version_info[0:2] < (3, 5):
+ print("Python 3.5+ is required", file=sys.stderr)
+ sys.exit(1)
+
# Need change in 1.10 for ffi.from_buffer()... | setup: require Python <I>+ Python <I> is officially unsupported upstream. I don't think it makes sense to continue supporting Python <I> in future versions. So let's drop support. This commit only teaches setup.py to reject older Python versions. We still have a bit of cleanup to do... | py |
diff --git a/tests/test_now.py b/tests/test_now.py
index <HASH>..<HASH> 100644
--- a/tests/test_now.py
+++ b/tests/test_now.py
@@ -11,12 +11,19 @@ def environment():
return Environment(extensions=['jinja2_time.TimeExtension'])
+@pytest.yield_fixture(autouse=True)
+def freeze():
+ freezer = freeze_time("2015... | Implement yield_fixture for freeze_time | py |
diff --git a/asammdf/gui/widgets/mdi_area.py b/asammdf/gui/widgets/mdi_area.py
index <HASH>..<HASH> 100644
--- a/asammdf/gui/widgets/mdi_area.py
+++ b/asammdf/gui/widgets/mdi_area.py
@@ -294,7 +294,9 @@ class WithMDIArea:
signals = [
sig
for sig in signals
- ... | fix #<I>: do not add string and bytes channels to the Plot | py |
diff --git a/theanets/layers.py b/theanets/layers.py
index <HASH>..<HASH> 100644
--- a/theanets/layers.py
+++ b/theanets/layers.py
@@ -108,8 +108,8 @@ def softmax(x):
A theano expression computing the softmax of each row of `x`.
'''
# TT.nnet.softmax doesn't work with the HF trainer.
- z = TT.exp(... | Use softmax definition closer to theano docs. | py |
diff --git a/pytify/pytifylib.py b/pytify/pytifylib.py
index <HASH>..<HASH> 100755
--- a/pytify/pytifylib.py
+++ b/pytify/pytifylib.py
@@ -1,6 +1,6 @@
from __future__ import unicode_literals
import sys
-from spotipy import Spotify
+import spotipy
from pytify.history import history
@@ -13,7 +13,7 @@ class Pytifyl... | except spotify exception from spotipy | py |
diff --git a/stagpy/stagyydata.py b/stagpy/stagyydata.py
index <HASH>..<HASH> 100644
--- a/stagpy/stagyydata.py
+++ b/stagpy/stagyydata.py
@@ -453,7 +453,7 @@ class _EmptyStep(_Step):
return False
-class _Steps(Mapping):
+class _Steps:
"""Collections of time steps. | _Steps no longer inherits Mapping The mixin methods offered by the Mapping interface aren't relevant to _Steps instances. | py |
diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/editor.py
+++ b/spyderlib/widgets/editor.py
@@ -1312,6 +1312,9 @@ class EditorStack(QWidget):
self._refresh_outlineexplorer()
self.emit(SIGNAL('refresh_file_dependent_act... | Editor: Give focus to the current file after closing a tab | py |
diff --git a/modelcluster/fields.py b/modelcluster/fields.py
index <HASH>..<HASH> 100644
--- a/modelcluster/fields.py
+++ b/modelcluster/fields.py
@@ -217,7 +217,13 @@ class ChildObjectsDescriptor(ReverseManyToOneDescriptor):
@cached_property
def child_object_manager_cls(self):
- return create_deferr... | ReverseManyToOneDescriptor.related renamed to .rel | py |
diff --git a/abilian/services/auth/views.py b/abilian/services/auth/views.py
index <HASH>..<HASH> 100644
--- a/abilian/services/auth/views.py
+++ b/abilian/services/auth/views.py
@@ -263,7 +263,7 @@ def reset_password_post(token):
def random_password():
pw = []
for _i in range(0, 10):
- pw.append(rand... | fix: py3k issue | py |
diff --git a/pyphi/models/mechanism.py b/pyphi/models/mechanism.py
index <HASH>..<HASH> 100644
--- a/pyphi/models/mechanism.py
+++ b/pyphi/models/mechanism.py
@@ -296,7 +296,7 @@ class MaximallyIrreducibleCause(MaximallyIrreducibleCauseOrEffect):
if ria.direction != Direction.CAUSE:
raise WrongDir... | Call `super().__init__()` in MIC and MIE | py |
diff --git a/tests/jobs/test_local_task_job.py b/tests/jobs/test_local_task_job.py
index <HASH>..<HASH> 100644
--- a/tests/jobs/test_local_task_job.py
+++ b/tests/jobs/test_local_task_job.py
@@ -733,6 +733,7 @@ class TestLocalTaskJob:
if scheduler_job.processor_agent:
scheduler_job.process... | Quarantine test_process_sigterm_works_with_retries and test_task_sigkill_works_with_retries in TestLocalTaskJob (#<I>) These tests are flaky and fail sometimes | py |
diff --git a/salt/key.py b/salt/key.py
index <HASH>..<HASH> 100644
--- a/salt/key.py
+++ b/salt/key.py
@@ -37,7 +37,7 @@ log = logging.getLogger(__name__)
def get_key(opts):
- if opts['transport'] == 'zeromq':
+ if opts['transport'] in ('zeromq', 'tcp'):
return Key(opts)
else:
return R... | make salt-key work with tcp transport | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,4 +8,4 @@ setup(
author='Gnarly Chicken',
author_email='gnarlychicken@gmx.com',
test_suite='tests',
- license='BSD')
\ No newline at end of file
+ license='BSD') | Fixed missing newline at end of file (flake8) | py |
diff --git a/lazyconf/lib/prompt.py b/lazyconf/lib/prompt.py
index <HASH>..<HASH> 100644
--- a/lazyconf/lib/prompt.py
+++ b/lazyconf/lib/prompt.py
@@ -51,8 +51,8 @@ class Prompt():
# If the regex fails, loop.
value = None
- print("Validation fai... | lib/prompt now uses better colours | py |
diff --git a/ibis/backends/base/sql/alchemy/registry.py b/ibis/backends/base/sql/alchemy/registry.py
index <HASH>..<HASH> 100644
--- a/ibis/backends/base/sql/alchemy/registry.py
+++ b/ibis/backends/base/sql/alchemy/registry.py
@@ -260,17 +260,6 @@ def _floor_divide(t, expr):
return sa.func.floor(left / right)
... | refactor(sqlalchemy): rewrite count distinct to use generalized reduction | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -800,7 +800,7 @@ class HazardCalculator(BaseCalculator):
'The logic tree has %d realizations(!), please consider '
... | Improved comment [skip CI] | py |
diff --git a/lazyarray.py b/lazyarray.py
index <HASH>..<HASH> 100644
--- a/lazyarray.py
+++ b/lazyarray.py
@@ -286,8 +286,14 @@ class larray(object):
elif isinstance(x, collections.Sized):
if len(x) == 0:
raise ValueError("Empty address component (address was %s)" % ad... | Use x.min() rather than min(x) where possible | py |
diff --git a/pullv/testsuite/test_repo_git.py b/pullv/testsuite/test_repo_git.py
index <HASH>..<HASH> 100644
--- a/pullv/testsuite/test_repo_git.py
+++ b/pullv/testsuite/test_repo_git.py
@@ -36,7 +36,7 @@ class RepoGit(ConfigTest):
'git', 'init', git_repo['name']
], cwd=repo_dir)
git_... | Suppress another test's warnings. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -85,7 +85,10 @@ setup(
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
- install_requires=['six==1.5.2'],
+ install_requires=[
+ 'six==1.5.2',
+ 'boto==2.28... | Added boto to setup.py | py |
diff --git a/src/abilian/core/models/subjects.py b/src/abilian/core/models/subjects.py
index <HASH>..<HASH> 100644
--- a/src/abilian/core/models/subjects.py
+++ b/src/abilian/core/models/subjects.py
@@ -336,7 +336,7 @@ class Group(Principal, db.Model):
return len(self.members)
@members_count.expression
... | fix: revert bad cleanup. | py |
diff --git a/vmo/utils/nuxmv/model.py b/vmo/utils/nuxmv/model.py
index <HASH>..<HASH> 100644
--- a/vmo/utils/nuxmv/model.py
+++ b/vmo/utils/nuxmv/model.py
@@ -222,8 +222,6 @@ def print_pitch_state(oracle, state, nuxmv_state_name='s'):
def print_pitches(oracle, nuxmv_state_name='s'):
# TODO : Add docstring.
- ... | Minor cosmetic update, removing useless comments | py |
diff --git a/vyper/ast/nodes.py b/vyper/ast/nodes.py
index <HASH>..<HASH> 100644
--- a/vyper/ast/nodes.py
+++ b/vyper/ast/nodes.py
@@ -58,7 +58,7 @@ def get_node(
if vy_class is None:
raise SyntaxException(
- f"Invalid syntax (unsupported '{ast_struct['ast_type']}'' Python AST node).",
+ ... | bugfix: show source highlight on SyntaxException during AST generation | py |
diff --git a/spyderlib/utils/iofuncs.py b/spyderlib/utils/iofuncs.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/iofuncs.py
+++ b/spyderlib/utils/iofuncs.py
@@ -331,7 +331,7 @@ def load_dictionary(filename):
# Old format (Spyder 2.0-2.1 for Python 2)
with open(pickle_filename, 'U') as f... | Fix missing Exception (Windows) This fixes an issue at least on Windows while tring to load data saved earlier in the Variable Explorer At least on Windows, pickle can raise a UnicodeDecodeError when the new format file is opened without mode='wb'. This was not caught and resulted in the failure of the loading of the... | py |
diff --git a/launch_control/utils/json/decoder.py b/launch_control/utils/json/decoder.py
index <HASH>..<HASH> 100644
--- a/launch_control/utils/json/decoder.py
+++ b/launch_control/utils/json/decoder.py
@@ -60,6 +60,8 @@ class PluggableJSONDecoder(json.JSONDecoder):
return self._unmarshall_object(obj, type_exp... | Improve json and simplejson compatibility, always decode strings to unicode before processing | py |
diff --git a/digitalocean/Droplet.py b/digitalocean/Droplet.py
index <HASH>..<HASH> 100644
--- a/digitalocean/Droplet.py
+++ b/digitalocean/Droplet.py
@@ -360,6 +360,10 @@ class Droplet(BaseAPI):
for attr in kwargs.keys():
setattr(self,attr,kwargs[attr])
+ # Provide backwards compatibilit... | Provide backwards compatibility with droplet size on create. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ if os.path.exists('README.txt'):
setup(name='Crawl',
- version='0.5',
+ version='0.5.1',
url='https://github.com/OiNutter/crawl',
download_url='https://nodeload.github.com/OiNutter/crawl/leg... | Bumped version to <I> | py |
diff --git a/test/test_environment.py b/test/test_environment.py
index <HASH>..<HASH> 100644
--- a/test/test_environment.py
+++ b/test/test_environment.py
@@ -500,7 +500,7 @@ def test_conda_channel_addition(tmpdir,
# (conda info would be more direct, but
# seems to reflect contents of condarc file,
... | Fix test, conda executable is not available in envs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
version='0.2.1',
packages=['barcode', 'barcode.writer'],
url='http://trac-hg.assembla.com/pybarcode',
- #download_url='',
+ download_url='http://www.dieweimanns.de/whitie/pyBarcode-0.... | Added download_url to setup.py | py |
diff --git a/future/tests/test_httpservers.py b/future/tests/test_httpservers.py
index <HASH>..<HASH> 100644
--- a/future/tests/test_httpservers.py
+++ b/future/tests/test_httpservers.py
@@ -322,6 +322,7 @@ print("%%s, %%s, %%s" %% (form.getfirst("spam"), form.getfirst("eggs"),
"""
+@unittest.skipIf('/home/travis'... | Prevent more tests from failing on travis-ci | py |
diff --git a/limpyd/collection.py b/limpyd/collection.py
index <HASH>..<HASH> 100644
--- a/limpyd/collection.py
+++ b/limpyd/collection.py
@@ -2,7 +2,7 @@
from limpyd.utils import unique_key
from limpyd.exceptions import *
-from limpyd.fields import SetField, MultiValuesField
+from limpyd.fields import MultiValuesF... | Remove unused import in collection.py | py |
diff --git a/django_secrets/startup.py b/django_secrets/startup.py
index <HASH>..<HASH> 100644
--- a/django_secrets/startup.py
+++ b/django_secrets/startup.py
@@ -112,3 +112,8 @@ def check():
my_secrets = importlib.util.module_from_spec(spec)
spec.loader.exec_module(my_secrets)
sys.modules['m... | we still need the attribute error catch for travis under some versions | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -39,11 +39,6 @@ def __get_version_info_from_git(version, version_info):
int(i) for i in parsed_version.split('-', 1)[0].split('.')
])
if parsed_version_info != version... | Remove the warnings filter from `salt.version`. | py |
diff --git a/autograd/convenience_wrappers.py b/autograd/convenience_wrappers.py
index <HASH>..<HASH> 100644
--- a/autograd/convenience_wrappers.py
+++ b/autograd/convenience_wrappers.py
@@ -125,8 +125,8 @@ def make_ggnvp(f, g=lambda x: 1./2*np.sum(x**2, axis=-1), f_argnum=0):
def ggnvp_maker(*args, **kwargs):
... | in make_ggnvp, rename f_vjp_vjp to f_jvp for clarity | py |
diff --git a/confit.py b/confit.py
index <HASH>..<HASH> 100644
--- a/confit.py
+++ b/confit.py
@@ -1002,6 +1002,17 @@ class String(Template):
if pattern:
self.regex = re.compile(pattern)
+ def __repr__(self):
+ args = []
+
+ if self.default is not REQUIRED:
+ args.app... | Add pattern to String's repr | py |
diff --git a/dftimewolf/lib/exporters/gce_disk_export_dd.py b/dftimewolf/lib/exporters/gce_disk_export_dd.py
index <HASH>..<HASH> 100644
--- a/dftimewolf/lib/exporters/gce_disk_export_dd.py
+++ b/dftimewolf/lib/exporters/gce_disk_export_dd.py
@@ -185,7 +185,7 @@ class GoogleCloudDiskExportStream(GoogleCloudDiskExportBa... | Update gce_disk_export_dd.py (#<I>) Nit: Missing space in the printed gcloud command | py |
diff --git a/xenon/compat.py b/xenon/compat.py
index <HASH>..<HASH> 100644
--- a/xenon/compat.py
+++ b/xenon/compat.py
@@ -7,6 +7,7 @@ import logging
import subprocess
import os
import sys
+import site
import signal
from .create_keys import create_self_signed_cert
@@ -16,10 +17,13 @@ from .version import xenon_g... | Add user prefix to locations to search for grpc jar file Fixes #<I> | py |
diff --git a/tests/Region_unit_tests.py b/tests/Region_unit_tests.py
index <HASH>..<HASH> 100644
--- a/tests/Region_unit_tests.py
+++ b/tests/Region_unit_tests.py
@@ -178,3 +178,19 @@ class RegionTestCase(unittest.TestCase):
print region.dilate()
self.assertTrue(np.array_equal(region.dilate().bitmap,
... | Added Region tests for str and repr. | py |
diff --git a/pydas/retry.py b/pydas/retry.py
index <HASH>..<HASH> 100644
--- a/pydas/retry.py
+++ b/pydas/retry.py
@@ -13,6 +13,10 @@ def reauth(fn):
return retVal
except pydas.exceptions.PydasException as detail:
print "Caught PydasException: ", detail
+ # Unable to authen... | BUG: rethrow the exception if user authentication failed | py |
diff --git a/src/greplin/scales/__init__.py b/src/greplin/scales/__init__.py
index <HASH>..<HASH> 100644
--- a/src/greplin/scales/__init__.py
+++ b/src/greplin/scales/__init__.py
@@ -241,6 +241,11 @@ class Stat(object):
return container[self.__name]
+ def _getInit(self):
+ """Internal method to return the ... | previous change was not compatible with pmf stats | py |
diff --git a/wire.py b/wire.py
index <HASH>..<HASH> 100644
--- a/wire.py
+++ b/wire.py
@@ -553,8 +553,8 @@ for before they are aborted and a |Timeout| error is returned to the \
client.''').
AddJsonParameter('type', '{string}',
'The type of operation to set the timeout for. Valid \
-values are: "script... | LukeIS: adding info about 'page load' that can be set on timeouts wire command r<I> | py |
diff --git a/selectable/__init__.py b/selectable/__init__.py
index <HASH>..<HASH> 100644
--- a/selectable/__init__.py
+++ b/selectable/__init__.py
@@ -1,5 +1,4 @@
-"""
-django-selectable is a collection of tools and widgets for using/creating auto-complete selection widgets using Django and jQuery UI.
-"""
+"Auto-compl... | Less verbose package description. | py |
diff --git a/photon.py b/photon.py
index <HASH>..<HASH> 100644
--- a/photon.py
+++ b/photon.py
@@ -171,7 +171,7 @@ def requester(url):
#check if link is not broken
if(response.status_code == codes.ok):
- return response.text; # return response body
+ ... | RE: Adding code to detect and report broken links. | py |
diff --git a/src/toil/jobStores/aws/jobStore.py b/src/toil/jobStores/aws/jobStore.py
index <HASH>..<HASH> 100644
--- a/src/toil/jobStores/aws/jobStore.py
+++ b/src/toil/jobStores/aws/jobStore.py
@@ -71,7 +71,7 @@ def copyKeyMultipart(srcKey, dstBucketName, dstKeyName, headers=None):
totalSize = srcKey.size
... | Resolved a bug in multipart upload (resolves #<I>) that didnt pass encryption headers for multipart uploads. | py |
diff --git a/multiqc/modules/custom_content/custom_content.py b/multiqc/modules/custom_content/custom_content.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/custom_content/custom_content.py
+++ b/multiqc/modules/custom_content/custom_content.py
@@ -327,10 +327,18 @@ class MultiqcModule(BaseMultiqcModule):
... | Custom content sections - don't exactly duplicate main module info and description | py |
diff --git a/merlin/interfaces.py b/merlin/interfaces.py
index <HASH>..<HASH> 100644
--- a/merlin/interfaces.py
+++ b/merlin/interfaces.py
@@ -30,7 +30,7 @@ class IValidator(Interface):
"""
A validator for a step in an exercise.
"""
- def validate(userStore, submission):
+ def validate(submission, ... | Flip order of userStore and submission in IValidator | py |
diff --git a/tweepy/streaming.py b/tweepy/streaming.py
index <HASH>..<HASH> 100644
--- a/tweepy/streaming.py
+++ b/tweepy/streaming.py
@@ -133,7 +133,7 @@ class Stream(object):
conn.close()
if exception:
- raise exception
+ raise
def _read_loop(self, resp):
... | The "raise exception" is overriding the stack trace and hiding all errors, a simple "raise" should be fine. | py |
diff --git a/marathon_acme/service.py b/marathon_acme/service.py
index <HASH>..<HASH> 100644
--- a/marathon_acme/service.py
+++ b/marathon_acme/service.py
@@ -1,5 +1,6 @@
from twisted.internet.defer import gatherResults
from twisted.logger import Logger, LogLevel
+from twisted.python.failure import Failure
from txac... | Log failures in _stop() | py |
diff --git a/globus_cli/commands/endpoint/permission/delete.py b/globus_cli/commands/endpoint/permission/delete.py
index <HASH>..<HASH> 100644
--- a/globus_cli/commands/endpoint/permission/delete.py
+++ b/globus_cli/commands/endpoint/permission/delete.py
@@ -1,7 +1,8 @@
import click
+from globus_cli.safeio import sa... | Add textmode output to the ACL delete command Just takes the message field on the response and sends it to stdout. Closes #<I> | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -752,7 +752,12 @@ class EventReturn(multiprocessing.Process):
self.opts['event_return']
)
if event_return in self.minion.return... | Prevent process restart if event retuerner can't be reached | py |
diff --git a/pyp2rpm/metadata_extractors.py b/pyp2rpm/metadata_extractors.py
index <HASH>..<HASH> 100644
--- a/pyp2rpm/metadata_extractors.py
+++ b/pyp2rpm/metadata_extractors.py
@@ -1,6 +1,7 @@
import logging
import os
import sys
+import re
import tempfile
import shutil
import itertools
@@ -246,7 +247,7 @@ class... | Escape specal characters in directory name before it is used as regex, fixes #<I> | py |
diff --git a/johnny/transaction.py b/johnny/transaction.py
index <HASH>..<HASH> 100644
--- a/johnny/transaction.py
+++ b/johnny/transaction.py
@@ -18,6 +18,7 @@ class TransactionManager(object):
On rollback, it will flush all local caches
On commit, it will push them up to the cache backend
"""
+ _pat... | Change _patched to a global variable in TransactionManager | py |
diff --git a/endpoints/discovery_generator.py b/endpoints/discovery_generator.py
index <HASH>..<HASH> 100644
--- a/endpoints/discovery_generator.py
+++ b/endpoints/discovery_generator.py
@@ -816,23 +816,8 @@ class DiscoveryGenerator(object):
Returns:
The _ApiInfo object to use for the API that the given s... | Skip mismatch detection for discovery doc generation as it's not necessary (#<I>) | py |
diff --git a/scripts/generate_json_docs.py b/scripts/generate_json_docs.py
index <HASH>..<HASH> 100644
--- a/scripts/generate_json_docs.py
+++ b/scripts/generate_json_docs.py
@@ -290,8 +290,8 @@ def build_type(type_id, title, contents):
def clean_source_path(source):
source_path = ''
- if 'gcloud-python' in ... | Fix wrong sys path name for generating docs. | py |
diff --git a/pmagpy/find_pmag_dir.py b/pmagpy/find_pmag_dir.py
index <HASH>..<HASH> 100755
--- a/pmagpy/find_pmag_dir.py
+++ b/pmagpy/find_pmag_dir.py
@@ -94,7 +94,7 @@ def find_user_data_dir(program_name):
import appdirs
return appdirs.user_data_dir(program_name, "PmagPy")
except ImportError:
- ... | make sure find_user_data_dir always returns something | py |
diff --git a/keyring/http.py b/keyring/http.py
index <HASH>..<HASH> 100644
--- a/keyring/http.py
+++ b/keyring/http.py
@@ -19,6 +19,9 @@ class PasswordMgr(object):
def get_username(self, realm, authuri):
return getpass.getuser()
+ def add_password(self, realm, authuri, password):
+ keyring.set... | Adding the add_password (which is required, even if it's not used) | py |
diff --git a/pysswords/db.py b/pysswords/db.py
index <HASH>..<HASH> 100644
--- a/pysswords/db.py
+++ b/pysswords/db.py
@@ -34,7 +34,8 @@ class Database(object):
def add(self, credential):
encrypted_password = self.gpg.encrypt(
credential.password,
- self.gpg_key
+ self.g... | Change GPG password encryption to AES<I> | py |
diff --git a/gcalcli/utils.py b/gcalcli/utils.py
index <HASH>..<HASH> 100644
--- a/gcalcli/utils.py
+++ b/gcalcli/utils.py
@@ -2,6 +2,7 @@ import calendar
import time
import locale
import six
+import re
from dateutil.tz import tzlocal
from dateutil.parser import parse as dateutil_parse
from datetime import dateti... | also modified utils addendum to the last commit: we also pushed our parse reminder function into utils, since (for now) it is shared between argparsers and gcalcli. Although, ideally, eventually, we will refactor in such a way that we don't have to parse reminders in more than one spot. | py |
diff --git a/rtv/__main__.py b/rtv/__main__.py
index <HASH>..<HASH> 100644
--- a/rtv/__main__.py
+++ b/rtv/__main__.py
@@ -103,6 +103,7 @@ def main():
filename=config['log'],
format='%(asctime)s:%(levelname)s:%(filename)s:%(lineno)d:%(message)s')
_logger.info('Starting new session, RT... | Adding python version to the log | py |
diff --git a/test/test_command.py b/test/test_command.py
index <HASH>..<HASH> 100644
--- a/test/test_command.py
+++ b/test/test_command.py
@@ -32,3 +32,7 @@ class TestCommand(object):
assert isinstance(Command('cl', {}).format_deep(), dict)
assert isinstance(Command('cl', []).format_deep(), list)
... | Make sure that format_deep formats strings inside structures as mentioned in PR #<I> | py |
diff --git a/edisgo/tools/pypsa_io.py b/edisgo/tools/pypsa_io.py
index <HASH>..<HASH> 100644
--- a/edisgo/tools/pypsa_io.py
+++ b/edisgo/tools/pypsa_io.py
@@ -1141,8 +1141,6 @@ def update_pypsa(network):
transformer['name'].append(repr(row['equipment']))
transformer['type'].append("")
transfo... | Fix duplicate entry of x and r in update_pypsa() (transformer part) | py |
diff --git a/messenger/make.py b/messenger/make.py
index <HASH>..<HASH> 100755
--- a/messenger/make.py
+++ b/messenger/make.py
@@ -73,5 +73,8 @@ else:
make_cmd = '"' + matlab_bin + mex + '"' + " -O -I" + header_path + " -L" + lib_path + " -lzmq ./src/messenger.c"
os.system(make_cmd)
-shutil.move('messenger.%s'%exte... | messenger/make.py: In order to be able to move and replace an existing file, the full path to the file must be specified. Closes #<I>. | py |
diff --git a/addok/core.py b/addok/core.py
index <HASH>..<HASH> 100644
--- a/addok/core.py
+++ b/addok/core.py
@@ -285,9 +285,12 @@ class Search(object):
limit = config.BUCKET_LIMIT - 1
ids = []
if keys:
- DB.zinterstore(self.query, keys)
- ids = DB.zrevrange(self.qu... | No need to interstore when only one key | py |
diff --git a/dev/sparktestsupport/modules.py b/dev/sparktestsupport/modules.py
index <HASH>..<HASH> 100644
--- a/dev/sparktestsupport/modules.py
+++ b/dev/sparktestsupport/modules.py
@@ -241,6 +241,17 @@ streaming_kafka = Module(
]
)
+streaming_kafka_0_10 = Module(
+ name="streaming-kafka-0-10",
+ depende... | [SPARK-<I>][STREAMING][BUILD] Add Kafka <I> project to build modules ## What changes were proposed in this pull request? This PR adds the Kafka <I> subproject to the build infrastructure. This makes sure Kafka <I> tests are only triggers when it or of its dependencies change. | py |
diff --git a/scripts/benchmark.py b/scripts/benchmark.py
index <HASH>..<HASH> 100644
--- a/scripts/benchmark.py
+++ b/scripts/benchmark.py
@@ -101,7 +101,7 @@ try:
logdt = round(math.log10(time.time() - t0),4)
tb["dt"].append(logdt)
tb["n_eq"].append(n_eq)
- ... | ok this should be all right now 4 | py |
diff --git a/src/mog_commons/__init__.py b/src/mog_commons/__init__.py
index <HASH>..<HASH> 100644
--- a/src/mog_commons/__init__.py
+++ b/src/mog_commons/__init__.py
@@ -1 +1 @@
-__version__ = '0.2.2'
+__version__ = '0.2.3' | bumped up the version to <I> | py |
diff --git a/gwpy/timeseries/io/gwf/framecpp.py b/gwpy/timeseries/io/gwf/framecpp.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/io/gwf/framecpp.py
+++ b/gwpy/timeseries/io/gwf/framecpp.py
@@ -169,7 +169,7 @@ def read_timeseriesdict(source, channels, start=None, end=None, type=None,
for channel, ts i... | timeseries.io.gwf.framecpp: only copy ts once at end if needed | py |
diff --git a/tests/core/test_no_prints.py b/tests/core/test_no_prints.py
index <HASH>..<HASH> 100644
--- a/tests/core/test_no_prints.py
+++ b/tests/core/test_no_prints.py
@@ -8,7 +8,7 @@ import os
def search_for_print_statements_in_python_files(path):
# subprocess output retrieval somehow does not work with grep ... | test(no_prints): Adapt test to print function changes | py |
diff --git a/jaraco/test/services.py b/jaraco/test/services.py
index <HASH>..<HASH> 100644
--- a/jaraco/test/services.py
+++ b/jaraco/test/services.py
@@ -29,8 +29,8 @@ import glob
from six.moves import urllib
-from jaraco.util.timing import Stopwatch
-from jaraco.util import properties
+from jaraco.timing import ... | Drop dependency on jaraco.util, replaced with dependency on jaraco.timing and jaraco.classes. | py |
diff --git a/test/__init__.py b/test/__init__.py
index <HASH>..<HASH> 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -266,14 +266,14 @@ class MotorReplicaSetTestBase(MotorTest):
self.rsc = self.motor_rsc_sync()
@gen.coroutine
- def motor_rsc(self, host=host, port=port, *args, **kwargs):
+ ... | Don't shadow global vars in test method. | py |
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -1123,7 +1123,7 @@ class Gitlab(object):
request = requests.post(url_str, data=data, headers=self.headers,
verify=self.verify_ssl)
if ... | Update __init__.py Return the created merge request object on success. | py |
diff --git a/tests/functional/driver.py b/tests/functional/driver.py
index <HASH>..<HASH> 100644
--- a/tests/functional/driver.py
+++ b/tests/functional/driver.py
@@ -56,7 +56,7 @@ class Driver(object):
raise AssertionError(
'expected to get nothing, but got message "%s"' %... | [tests] relax uploaded file check | py |
diff --git a/torchvision/transforms/transforms.py b/torchvision/transforms/transforms.py
index <HASH>..<HASH> 100644
--- a/torchvision/transforms/transforms.py
+++ b/torchvision/transforms/transforms.py
@@ -572,7 +572,7 @@ class RandomPerspective(object):
height : height of the image.
Returns:
-... | Typo and syntax fixes to transform docstrings (#<I>) | py |
diff --git a/deployment/freebsd/__init__.py b/deployment/freebsd/__init__.py
index <HASH>..<HASH> 100644
--- a/deployment/freebsd/__init__.py
+++ b/deployment/freebsd/__init__.py
@@ -107,6 +107,10 @@ class AppserverJail(api.BaseJail):
fab.sudo("""mkdir -p %s%s""" % (self.fs_remote_root, self.app_home))
... | HACK: remove watchdog.py to avoid its dependencies during pyramid scan (it should really be a separate# package altogether) | py |
diff --git a/parsl/tests/test_scaling/osg/test_osg_ipp.ssh.condor.py b/parsl/tests/test_scaling/osg/test_osg_ipp.ssh.condor.py
index <HASH>..<HASH> 100644
--- a/parsl/tests/test_scaling/osg/test_osg_ipp.ssh.condor.py
+++ b/parsl/tests/test_scaling/osg/test_osg_ipp.ssh.condor.py
@@ -28,7 +28,8 @@ config = {
... | Adding appropriate overrides to get machines with cvmfs and modules from OSG | py |
diff --git a/pyrax/clouddns.py b/pyrax/clouddns.py
index <HASH>..<HASH> 100644
--- a/pyrax/clouddns.py
+++ b/pyrax/clouddns.py
@@ -62,7 +62,7 @@ class CloudDNSRecord(BaseResource):
"""
Modifies this record.
"""
- return self.manager.update_record(self.domain_id, self, self.name, data=d... | Fixed a bug that prevented updates of record objects. | py |
diff --git a/idx2numpy/converters.py b/idx2numpy/converters.py
index <HASH>..<HASH> 100644
--- a/idx2numpy/converters.py
+++ b/idx2numpy/converters.py
@@ -109,3 +109,32 @@ def _internal_convert(input):
# Reshape data according to dimensions sizes.
result = numpy.reshape(result_array, dims_sizes)
return r... | API fixed, wrapper methods for the bit that does the work added | py |
diff --git a/coconut/root.py b/coconut/root.py
index <HASH>..<HASH> 100644
--- a/coconut/root.py
+++ b/coconut/root.py
@@ -23,9 +23,9 @@ import sys as _coconut_sys
# VERSION:
#-----------------------------------------------------------------------------------------------------------------------
-VERSION = "1.2.0"
+... | Sets version to <I> | py |
diff --git a/pymzn/mzn/model.py b/pymzn/mzn/model.py
index <HASH>..<HASH> 100644
--- a/pymzn/mzn/model.py
+++ b/pymzn/mzn/model.py
@@ -33,7 +33,7 @@ def discretize(value, factor=100):
return int_value
-_jenv = Environment()
+_jenv = Environment(trim_bloks=True, lstrip_blocks=True)
_jenv.filters['dzn'] = val2d... | model: add trim_blocks and lstrip_blocks to jinja2 environment | py |
diff --git a/sumo/plotting/optics_plotter.py b/sumo/plotting/optics_plotter.py
index <HASH>..<HASH> 100644
--- a/sumo/plotting/optics_plotter.py
+++ b/sumo/plotting/optics_plotter.py
@@ -150,7 +150,10 @@ class SOpticsPlotter(object):
x0, x1 = ax.get_xlim()
y0, y1 = ax.get_ylim()
- height, wid... | BUGFIX: Aspect ratio handling in optics plot | py |
diff --git a/marathon/models/events.py b/marathon/models/events.py
index <HASH>..<HASH> 100644
--- a/marathon/models/events.py
+++ b/marathon/models/events.py
@@ -114,9 +114,11 @@ class MarathonEventStreamDetached(MarathonEvent):
class MarathonUnhealthyTaskKillEvent(MarathonEvent):
KNOWN_ATTRIBUTES = ['app_id', '... | Updated to pass test I fixed the indentation that blocked the tests from passing, had only one carryage return instead of 2 | py |
diff --git a/emma2/msm/estimation/api.py b/emma2/msm/estimation/api.py
index <HASH>..<HASH> 100644
--- a/emma2/msm/estimation/api.py
+++ b/emma2/msm/estimation/api.py
@@ -234,6 +234,7 @@ def tmatrix(C, reversible=False, mu=None):
raise TypeError("C is not of type scipy.sparse.")
tmatrix=tran... | added alias tmatrix to __all__ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,11 @@ version = '0.1'
#
# integration with py.test for `python setup.py test`
#
+tests_require = [
+ "py == 1.3.4",
+ "WebTest == 1.2.2",
+]
+
class PyTest(Command):
user_options = []
def initialize_opt... | moved testing dependencies to tests_require as it is test-specific and not Pecan related. | py |
diff --git a/src/__init__.py b/src/__init__.py
index <HASH>..<HASH> 100644
--- a/src/__init__.py
+++ b/src/__init__.py
@@ -1,4 +1,4 @@
-__version_info__ = ('1', '1', '3')
+__version_info__ = ('1', '1', '4')
__version__ = '.'.join(__version_info__)
from .wrappers import ObjectProxy, FunctionWrapper, WeakFunctionProx... | Increment version to <I>. | py |
diff --git a/phypno/ioeeg/ktlx.py b/phypno/ioeeg/ktlx.py
index <HASH>..<HASH> 100644
--- a/phypno/ioeeg/ktlx.py
+++ b/phypno/ioeeg/ktlx.py
@@ -764,6 +764,16 @@ class Ktlx():
ndarray
2-d matrix with data (might contain NaN)
+ Notes
+ -----
+ The sample numbering is not based ... | only DOC: clarify that nan at the beginning of the file are because of the time stamps in STC | py |
diff --git a/thunder/fields.py b/thunder/fields.py
index <HASH>..<HASH> 100644
--- a/thunder/fields.py
+++ b/thunder/fields.py
@@ -18,9 +18,10 @@ class Field(object):
if obj is None:
return self
obj_info = get_obj_info(obj)
- if obj_info is not None:
- value = obj_info.v... | Allow us to access unset fields, the default value should be returned | py |
diff --git a/angr/calling_conventions.py b/angr/calling_conventions.py
index <HASH>..<HASH> 100644
--- a/angr/calling_conventions.py
+++ b/angr/calling_conventions.py
@@ -82,14 +82,20 @@ class SimRegArg(SimFunctionArgument):
def __hash__(self):
return hash((self.size, self.reg_name, tuple(self.alt_offsets... | SimRegArg._fix_offset() now also takes an arch. | py |
diff --git a/tornado_pyuv/__init__.py b/tornado_pyuv/__init__.py
index <HASH>..<HASH> 100644
--- a/tornado_pyuv/__init__.py
+++ b/tornado_pyuv/__init__.py
@@ -49,6 +49,7 @@ class IOLoop(object):
self._waker = Waker(self._loop)
self._fdwaker = FDWaker()
self._signal_checker = pyuv.util.SignalC... | Unref the signal checker handle | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,7 @@
from __future__ import print_function
import glob
+import itertools
import os
import platform
import shutil
@@ -89,7 +90,7 @@ datafiles = [
os.path.join("share/shoebot/", root),
[os.path.j... | Make setup.py a bit smaller. | py |
diff --git a/isort/isort.py b/isort/isort.py
index <HASH>..<HASH> 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -306,13 +306,6 @@ class SortImports(object):
for module in imports:
self.imports[self.place_module(module)][import_type].add(module)
- if s... | Imports at the end of the file do no longer cause an issue with isort, and so the condition can be removed | py |
diff --git a/ansible/modules/hashivault/hashivault_policy_set_from_file.py b/ansible/modules/hashivault/hashivault_policy_set_from_file.py
index <HASH>..<HASH> 100644
--- a/ansible/modules/hashivault/hashivault_policy_set_from_file.py
+++ b/ansible/modules/hashivault/hashivault_policy_set_from_file.py
@@ -7,7 +7,7 @@ f... | Fix policy set from file docs | py |
diff --git a/src/bezier/_geometric_intersection.py b/src/bezier/_geometric_intersection.py
index <HASH>..<HASH> 100644
--- a/src/bezier/_geometric_intersection.py
+++ b/src/bezier/_geometric_intersection.py
@@ -1041,7 +1041,7 @@ def _set_max_candidates(num_candidates):
Args:
num_candidates (int): The numb... | Adding Pylint disable statements for `global` keyword. (FWIW I **hate** using `global` and may address this later.) | 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
@@ -91,7 +91,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'default'
+html_theme =... | doc: change Sphinx style to haiku | py |
diff --git a/osfclient/models/file.py b/osfclient/models/file.py
index <HASH>..<HASH> 100644
--- a/osfclient/models/file.py
+++ b/osfclient/models/file.py
@@ -37,6 +37,8 @@ class File(OSFCore):
'attributes', 'date_created')
self.date_modified = self._get_attribu... | EHN: provide the file hashes publicly | py |
diff --git a/magic_select.py b/magic_select.py
index <HASH>..<HASH> 100755
--- a/magic_select.py
+++ b/magic_select.py
@@ -31,6 +31,9 @@ def main():
"""
dir_path="."
flag=''
+ if '-WD' in sys.argv:
+ ind=sys.argv.index('-WD')
+ dir_path=sys.argv[ind+1]
if '-h' in sys.argv:
... | Lori edit: added -WD option | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.