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 @@ -42,6 +42,7 @@ setup(name='zipline', 'Logbook', 'blist', 'pytz', + 'requests', 'numpy', 'pandas' ],
Adds requests library to setup's required libraries. So that loading of external data works 'out of the box'.
py
diff --git a/pandas/tseries/tests/test_tslib.py b/pandas/tseries/tests/test_tslib.py index <HASH>..<HASH> 100644 --- a/pandas/tseries/tests/test_tslib.py +++ b/pandas/tseries/tests/test_tslib.py @@ -167,7 +167,7 @@ class TestTimestamp(tm.TestCase): # dateutil zone change (only matters for repr) impo...
dateutil <I> update on tz's
py
diff --git a/gdspy/__init__.py b/gdspy/__init__.py index <HASH>..<HASH> 100644 --- a/gdspy/__init__.py +++ b/gdspy/__init__.py @@ -4231,6 +4231,10 @@ def boolean(operand1, operand2, operation, precision=0.001, max_points=199, laye poly1 = _gather_polys(operand1) poly2 = _gather_polys(operand2) if len(pol...
Fix boolean logic when B is empty
py
diff --git a/pyemu/utils/geostats.py b/pyemu/utils/geostats.py index <HASH>..<HASH> 100644 --- a/pyemu/utils/geostats.py +++ b/pyemu/utils/geostats.py @@ -484,7 +484,7 @@ class SpecSim2d(object): "SpecSim2D grid_par_ensemble_helper() error: only a single variogram can be used..." ) ...
casting i,j cols in specsim ensemble helper
py
diff --git a/pnc_cli/swagger_client/models/support_level_page.py b/pnc_cli/swagger_client/models/support_level_page.py index <HASH>..<HASH> 100644 --- a/pnc_cli/swagger_client/models/support_level_page.py +++ b/pnc_cli/swagger_client/models/support_level_page.py @@ -142,7 +142,7 @@ class SupportLevelPage(object): ...
add workaround for erroneous swagger generation
py
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py index <HASH>..<HASH> 100644 --- a/elifetools/parseJATS.py +++ b/elifetools/parseJATS.py @@ -2510,6 +2510,10 @@ def author_email_addresses(author, correspondence): if "email" in affiliation and affiliation["email"] not in email_addresses: ...
Take email address from author attributes if not found elsewhere.
py
diff --git a/src/flake8_comprehensions.py b/src/flake8_comprehensions.py index <HASH>..<HASH> 100644 --- a/src/flake8_comprehensions.py +++ b/src/flake8_comprehensions.py @@ -15,6 +15,8 @@ class ComprehensionChecker: name = "flake8-comprehensions" version = version("flake8-comprehensions") + __slots__ = ...
Add __slots__ to plugin class to reduce memory footprint (#<I>)
py
diff --git a/pyqode/core/api/code_edit.py b/pyqode/core/api/code_edit.py index <HASH>..<HASH> 100644 --- a/pyqode/core/api/code_edit.py +++ b/pyqode/core/api/code_edit.py @@ -1034,6 +1034,7 @@ class CodeEdit(QtWidgets.QPlainTextEdit): def _show_context_menu(self, point): """ Shows the context menu """ +...
Fix context entry not working at mouse position by moving the text cursor to the mouse position Fix OpenCobolIDE/OpenCobolIDE#<I>
py
diff --git a/mot/cl_environments.py b/mot/cl_environments.py index <HASH>..<HASH> 100644 --- a/mot/cl_environments.py +++ b/mot/cl_environments.py @@ -9,6 +9,9 @@ __maintainer__ = "Robbert Harms" __email__ = "robbert.harms@maastrichtuniversity.nl" +_context_cache = {} + + class CLEnvironment(object): def _...
Adds CL context cache to fix issue #5
py
diff --git a/src/toil/job.py b/src/toil/job.py index <HASH>..<HASH> 100644 --- a/src/toil/job.py +++ b/src/toil/job.py @@ -925,7 +925,7 @@ class Job(BaseJob): try: unpickler = pickle.Unpickler(fileHandle) # In Python 2 with cPickle we set "find_global" - #unpickler.find_glo...
Uncomment accidentally-commented unpickler patch
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -167,14 +167,13 @@ Furthermore, Spyder offers built-in integration with many popular scientific packages, including NumPy, SciPy, Pandas, IPython, QtConsole, Matplotlib, SymPy, and more. Beyond its many built-in features, S...
Remove author email and modify blurb per reviewer feedback
py
diff --git a/skyfield/tests/test_topos.py b/skyfield/tests/test_topos.py index <HASH>..<HASH> 100644 --- a/skyfield/tests/test_topos.py +++ b/skyfield/tests/test_topos.py @@ -3,18 +3,19 @@ from numpy import abs from skyfield.api import load from skyfield.toposlib import Topos +angle = (15, 25, 35, 45) + def ts(): ...
Properly split test into n tests
py
diff --git a/gtdoit/logbook.py b/gtdoit/logbook.py index <HASH>..<HASH> 100644 --- a/gtdoit/logbook.py +++ b/gtdoit/logbook.py @@ -470,6 +470,8 @@ class SyncedRotationEventStores(EventStore): # TODO: Test that 'md5sum' exists def add_rotated_store(self, rotated_store): + assert self.count == 0, \...
Adding assert to evade unsynced event stores
py
diff --git a/build/gjslint.py b/build/gjslint.py index <HASH>..<HASH> 100644 --- a/build/gjslint.py +++ b/build/gjslint.py @@ -6,8 +6,10 @@ import sys src_dir = os.path.join(os.path.dirname(__file__), '..') -sys.path.append(os.path.join(src_dir, 'third_party/python_gflags')) -sys.path.append(os.path.join(src_dir, ...
Point gjslint at the new location for closure_linter
py
diff --git a/psamm/gapfilling.py b/psamm/gapfilling.py index <HASH>..<HASH> 100644 --- a/psamm/gapfilling.py +++ b/psamm/gapfilling.py @@ -36,7 +36,11 @@ logger = logging.getLogger(__name__) def add_all_database_reactions(model, compartments): - """Add all reactions from database that occur in given compartment...
gapfilling: Extend docstrings with model type information
py
diff --git a/client/deis.py b/client/deis.py index <HASH>..<HASH> 100755 --- a/client/deis.py +++ b/client/deis.py @@ -1017,11 +1017,13 @@ class DeisClient(object): a local file path to a SSH private key used to connect to cluster members. --type=<type> cluster type (default: coreos...
feat(client): allow cluster id rename
py
diff --git a/d1_client_cli/src/d1_client_cli/impl/session.py b/d1_client_cli/src/d1_client_cli/impl/session.py index <HASH>..<HASH> 100755 --- a/d1_client_cli/src/d1_client_cli/impl/session.py +++ b/d1_client_cli/src/d1_client_cli/impl/session.py @@ -132,7 +132,7 @@ variable_defaults_map = { VERBOSE_NAME: True, E...
Fixed issue caused by overwriting DEFAULT_MN_HOST.
py
diff --git a/openpnm/core/Base.py b/openpnm/core/Base.py index <HASH>..<HASH> 100644 --- a/openpnm/core/Base.py +++ b/openpnm/core/Base.py @@ -416,16 +416,33 @@ class Base(dict): strings is received, then a dictionary containing each of the requested items is returned. + Notes + ----- ...
Fixing and enhancing example in docstring
py
diff --git a/Wappalyzer.py b/Wappalyzer.py index <HASH>..<HASH> 100644 --- a/Wappalyzer.py +++ b/Wappalyzer.py @@ -203,7 +203,10 @@ class Wappalyzer(object): def __get_implied_apps(apps): _implied_apps = set() for app in apps: - _implied_apps.update(self.apps[app]['impl...
Hacky fix for implied apps... Not sure why it's messing up to begin with...
py
diff --git a/example/config.py b/example/config.py index <HASH>..<HASH> 100644 --- a/example/config.py +++ b/example/config.py @@ -3,7 +3,7 @@ # Desc: entirely optional config file for the CLI deploy # see: pyinfra/api/config.py for defaults -from pyinfra import hook, local +from pyinfra import hook # Th...
Make it possible to run examples on any branch!
py
diff --git a/peri/opt/optimize.py b/peri/opt/optimize.py index <HASH>..<HASH> 100644 --- a/peri/opt/optimize.py +++ b/peri/opt/optimize.py @@ -2521,7 +2521,7 @@ def burn(s, n_loop=6, collect_stats=False, desc='', rz_order=0, fractol=1e-7, increase_list=[['psf-', 3e1]] + BAD_LIST) if a != 0 or ...
Fixing stupid mistake in prev. opt commit.
py
diff --git a/pyrsistent_types.py b/pyrsistent_types.py index <HASH>..<HASH> 100644 --- a/pyrsistent_types.py +++ b/pyrsistent_types.py @@ -416,7 +416,7 @@ class PMap(object): __eq__ = Mapping.__eq__ __ne__ = Mapping.__ne__ - + __contains__ = Mapping.__contains__ __str__ = __repr__ def __hash_...
Fix bug causing _very_ slow lookups in large maps
py
diff --git a/spyder/plugins/help.py b/spyder/plugins/help.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/help.py +++ b/spyder/plugins/help.py @@ -834,9 +834,12 @@ class Help(SpyderPluginWidget): def save_history(self): """Save history to a text file in user home directory""" - open(self.L...
Help: Catch possible errors when writing its history to disk
py
diff --git a/scripts/gen_regex.py b/scripts/gen_regex.py index <HASH>..<HASH> 100644 --- a/scripts/gen_regex.py +++ b/scripts/gen_regex.py @@ -27,7 +27,7 @@ def func_to_regex(accept_func): elif category != 'Cn': parsing_range = False - return '[%s]' % ''.join('%s-%s' % (chr(r[0]), chr(r[1])) ...
%c is a thing Former-commit-id: <I>fb7aacde<I>e8a<I>be<I>ff<I>bac4efbfa9
py
diff --git a/salt/config/__init__.py b/salt/config/__init__.py index <HASH>..<HASH> 100644 --- a/salt/config/__init__.py +++ b/salt/config/__init__.py @@ -2743,7 +2743,7 @@ def apply_minion_config(overrides=None, # No ID provided. Will getfqdn save us? using_ip_for_id = False - if opts['id'] is None: + ...
Use a broader test for unset "id" The "id" option is of type string - testing that an uninitialized "id" is specifically None is too narrow. Fixes #<I> References #<I>
py
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py index <HASH>..<HASH> 100644 --- a/openquake/engine/engine.py +++ b/openquake/engine/engine.py @@ -217,7 +217,8 @@ def poll_queue(job_id, poll_time): logs.dbcmd('update_job', job_id, {'status': 'subm...
Better logging [ci skip]
py
diff --git a/klue_microservice/crash.py b/klue_microservice/crash.py index <HASH>..<HASH> 100644 --- a/klue_microservice/crash.py +++ b/klue_microservice/crash.py @@ -257,7 +257,7 @@ def crash_handler(f): # Make sure that the response gets the same status as the Klue Error it contained ...
Werzkreug wants an int, not a string
py
diff --git a/DetectorConstruction.py b/DetectorConstruction.py index <HASH>..<HASH> 100644 --- a/DetectorConstruction.py +++ b/DetectorConstruction.py @@ -49,7 +49,7 @@ class VlenfDetectorConstruction(G4.G4VUserDetectorConstruction): lv = G4.G4LogicalVolumeStore.GetInstance().GetVolumeID(0) assert l...
Closes issue #1, check field only in steel
py
diff --git a/compiler/grammar.py b/compiler/grammar.py index <HASH>..<HASH> 100644 --- a/compiler/grammar.py +++ b/compiler/grammar.py @@ -144,7 +144,6 @@ component_declaration = Forward() type = Word(alphas, alphanums) component_type = Word(srange("[A-Za-z_]"), alphanums + "._") identifier = Word(srange("[a-z_]"), ...
added strings and comments to ignoreExpr for code
py
diff --git a/metpy/calc/tests/test_basic.py b/metpy/calc/tests/test_basic.py index <HASH>..<HASH> 100644 --- a/metpy/calc/tests/test_basic.py +++ b/metpy/calc/tests/test_basic.py @@ -310,3 +310,9 @@ def test_coriolis_warning(): coriolis_parameter(50) with pytest.warns(UserWarning): coriolis_param...
Test coriolis units are 1/s
py
diff --git a/digitalocean/baseapi.py b/digitalocean/baseapi.py index <HASH>..<HASH> 100644 --- a/digitalocean/baseapi.py +++ b/digitalocean/baseapi.py @@ -43,14 +43,16 @@ class BaseAPI(object): r = self.__perform_get(url, headers=headers, params=params) return r - def __call_api(self, path, a...
Renamed __call_api into __get_data to make a KISS method that will get the data from a URL. This is a big improvement because will help to understand what URL is called in a specific method.
py
diff --git a/test/__init__.py b/test/__init__.py index <HASH>..<HASH> 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -76,7 +76,7 @@ class TestCase(unittest.TestCase): def assertDatasetIdentical(self, d1, d2): # this method is functionally equivalent to `assert d1.identical(d2)`, # but it...
Show dicts when equality assertion fails
py
diff --git a/djstripe/forms.py b/djstripe/forms.py index <HASH>..<HASH> 100644 --- a/djstripe/forms.py +++ b/djstripe/forms.py @@ -71,6 +71,6 @@ if StripeWidget and setup_user_email: customer.subscribe(self.cleaned_data["plan"]) except stripe.StripeError as e: # handle err...
Add StripeSubscriptionSignupForm and StripeWidget to support singups (#<I>)
py
diff --git a/kafka/client.py b/kafka/client.py index <HASH>..<HASH> 100644 --- a/kafka/client.py +++ b/kafka/client.py @@ -67,11 +67,18 @@ class SimpleClient(object): ) conn = self._conns[host_key] + conn.connect() + if conn.connected(): + return conn + timeout ...
Raise ConnectionError immediately on disconnect in SimpleClient._get_conn
py
diff --git a/tfatool/cgi.py b/tfatool/cgi.py index <HASH>..<HASH> 100644 --- a/tfatool/cgi.py +++ b/tfatool/cgi.py @@ -5,6 +5,7 @@ from enum import Enum logger = logging.getLogger(__name__) +logging.getLogger("requests").setLevel(logging.WARNING) ##################################
setting requets logging to a less verbose level
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -73,6 +73,7 @@ install_requires = [ 'pylint', 'python-json-logger', 'pytest', + 'pypandoc', 'recommonmark', 'requests', 'sphinx', @@ -97,7 +98,7 @@ sys.path.insert(0, os.path.join(os.path.dirna...
adding pypandoc to the setup.py
py
diff --git a/pfamserver/api.py b/pfamserver/api.py index <HASH>..<HASH> 100644 --- a/pfamserver/api.py +++ b/pfamserver/api.py @@ -126,10 +126,10 @@ class StockholmFromPfamAPI(Resource): class SequenceDescriptionFromPfamAPI(Resource): def get_descriptions(self, code): - icode = "%{:}%".format(code) - ...
Updated the sequencedescription_pfam query.
py
diff --git a/kl.py b/kl.py index <HASH>..<HASH> 100755 --- a/kl.py +++ b/kl.py @@ -7,7 +7,11 @@ import sys from ctypes.util import find_library from time import sleep -assert("linux" in sys.platform) +if not 'linux' in sys.platform: + raise RuntimeError('Platform not supported (Linux only).') + +if not find_libr...
Added guards for linux and x<I> requirements.
py
diff --git a/backtrader/cerebro.py b/backtrader/cerebro.py index <HASH>..<HASH> 100644 --- a/backtrader/cerebro.py +++ b/backtrader/cerebro.py @@ -1325,7 +1325,7 @@ class Cerebro(with_metaclass(MetaParams, object)): if attrname.startswith('data'): setattr(a, attrnam...
added a reference to strategy class to OptReturn
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( version=__version__, author='Brian Beffa', author_email='brbsix@gmail.com', - description="Utilities to generate and verify pathnames", + description="Developer utility to generate an...
Update description and add Utilities topic.
py
diff --git a/anyconfig/mergeabledict.py b/anyconfig/mergeabledict.py index <HASH>..<HASH> 100644 --- a/anyconfig/mergeabledict.py +++ b/anyconfig/mergeabledict.py @@ -112,7 +112,7 @@ def get(dic, path, seps=PATH_SEPS): ([1, 2], '') >>> get(d, "/a/b/d/1") (2, '') - >>> get(d, "/a/b/d/2") # doctest: +I...
refactor: remove unnecessary doctest option line
py
diff --git a/tensorflow_probability/python/experimental/marginalize/logeinsumexp.py b/tensorflow_probability/python/experimental/marginalize/logeinsumexp.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/experimental/marginalize/logeinsumexp.py +++ b/tensorflow_probability/python/experimental/marginali...
Ensure axes passed to reduce_max or unique in logeinsum_exp. PiperOrigin-RevId: <I>
py
diff --git a/pylint/reporters/text.py b/pylint/reporters/text.py index <HASH>..<HASH> 100644 --- a/pylint/reporters/text.py +++ b/pylint/reporters/text.py @@ -119,7 +119,7 @@ def colorize_ansi(msg, color=None, style=None): class TextReporter(BaseReporter): - """reports messages and layouts in plain text""" + ...
Fix a typo in TextReporter
py
diff --git a/progressbar/bar.py b/progressbar/bar.py index <HASH>..<HASH> 100644 --- a/progressbar/bar.py +++ b/progressbar/bar.py @@ -71,6 +71,10 @@ class DefaultFdMixin(ProgressBarMixinBase): def finish(self, *args, **kwargs): # pragma: no cover end = kwargs.pop('end', '\n') ProgressBarMixinBa...
Fixing duplicate lines after run. Fixes #<I>
py
diff --git a/ccmlib/cluster.py b/ccmlib/cluster.py index <HASH>..<HASH> 100644 --- a/ccmlib/cluster.py +++ b/ccmlib/cluster.py @@ -316,13 +316,14 @@ class Cluster(object): common.assert_jdk_valid_for_cassandra_version(self.cassandra_version()) # check whether all loopback aliases are available befor...
Restore previous ability of cluster.start() to start partially downed clusters, idempotency if start is completed
py
diff --git a/test/unit/test-completion.py b/test/unit/test-completion.py index <HASH>..<HASH> 100755 --- a/test/unit/test-completion.py +++ b/test/unit/test-completion.py @@ -49,7 +49,8 @@ class TestCompletion(unittest.TestCase): # Completion when word is complete with space. ['info ...
Add frame and builtins to completion test
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -122,8 +122,8 @@ def get_version_info(): vinfo = _version_helper.generate_git_version_info() except: vinfo = vdummy() - vinfo.version = '2.0.3' - vinfo.release = 'True' + vinfo.versi...
set back to dev (#<I>)
py
diff --git a/gwpy/plot/axes.py b/gwpy/plot/axes.py index <HASH>..<HASH> 100644 --- a/gwpy/plot/axes.py +++ b/gwpy/plot/axes.py @@ -525,7 +525,18 @@ class Axes(_Axes): # create legend return super(Axes, self).legend(*args, **kwargs) - legend.__doc__ = _Axes.legend.__doc__ + legend.__doc__ = _Ax...
gwpy.plot: improve Axes.legend docstring to explain custom `handler_map` and how to disable it
py
diff --git a/telebot/__init__.py b/telebot/__init__.py index <HASH>..<HASH> 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -44,13 +44,15 @@ class TeleBot: def get_update(self): result = apihelper.get_updates(self.token, offset=(self.last_update_id + 1)) updates = result['result'] -...
Fix unnecessary Thread creation when no new messages arrived.
py
diff --git a/pycm/pycm_obj.py b/pycm/pycm_obj.py index <HASH>..<HASH> 100644 --- a/pycm/pycm_obj.py +++ b/pycm/pycm_obj.py @@ -920,7 +920,7 @@ class ConfusionMatrix(): classes = [class_name, '~'] try: from matplotlib import pyplot as plt - except ModuleNotFoundError: + e...
fix : minor edit in plot method exception section
py
diff --git a/scripts/import-external.py b/scripts/import-external.py index <HASH>..<HASH> 100755 --- a/scripts/import-external.py +++ b/scripts/import-external.py @@ -1125,7 +1125,10 @@ if doucbspectra: elif d == 4: filename = td.contents[0].strip() name = filename.split('...
should be getting case correct on iau sn from ucb spectra.
py
diff --git a/astrobase/periodbase/smav.py b/astrobase/periodbase/smav.py index <HASH>..<HASH> 100644 --- a/astrobase/periodbase/smav.py +++ b/astrobase/periodbase/smav.py @@ -243,7 +243,7 @@ def aovhm_theta_worker(task): def aovhm_periodfind(times, mags, errs, - ...
smav: bump up default nharmonics to 6 from 4
py
diff --git a/openid/tools/oiddiag.py b/openid/tools/oiddiag.py index <HASH>..<HASH> 100644 --- a/openid/tools/oiddiag.py +++ b/openid/tools/oiddiag.py @@ -252,6 +252,15 @@ class Thing(ApacheView): def associate(self, auth_request): self.statusMsg("Associating with %s..." % (auth_request.server_url,)) + ...
[project @ oiddiag: make association request]
py
diff --git a/blockstack_cli_0.14.1/blockstore/client.py b/blockstack_cli_0.14.1/blockstore/client.py index <HASH>..<HASH> 100644 --- a/blockstack_cli_0.14.1/blockstore/client.py +++ b/blockstack_cli_0.14.1/blockstore/client.py @@ -437,7 +437,7 @@ def preorder(name, privatekey, register_addr=None, proxy=None): ...
Use proper address-fetching method for public keys
py
diff --git a/pycm/pycm_obj.py b/pycm/pycm_obj.py index <HASH>..<HASH> 100644 --- a/pycm/pycm_obj.py +++ b/pycm/pycm_obj.py @@ -673,7 +673,6 @@ class ConfusionMatrix(): else: raise pycmAverageError(AVERAGE_INVALID_ERROR) try: - weight_list = [] param_list = [] ...
minor edits in adding average method to pycm object #<I>
py
diff --git a/antlr_tsql/ast.py b/antlr_tsql/ast.py index <HASH>..<HASH> 100644 --- a/antlr_tsql/ast.py +++ b/antlr_tsql/ast.py @@ -198,7 +198,7 @@ class UpdateStmt(AstNode): _fields = ['with_expression->with_expr', 'top_clause_dm->top_clause', 'ddl_object->target', 'rowset_function_limited->target'...
fix set clause being omitted from UPDATE ast
py
diff --git a/tests/UnitTests/test_IRField.py b/tests/UnitTests/test_IRField.py index <HASH>..<HASH> 100755 --- a/tests/UnitTests/test_IRField.py +++ b/tests/UnitTests/test_IRField.py @@ -119,8 +119,13 @@ class TestIRField(object): assert ids[0] == myObj._id , 'Expected id to be set on saved object, but was not...
Add other test for hasUnsavedChanges in test_IRField
py
diff --git a/_pytest/terminal.py b/_pytest/terminal.py index <HASH>..<HASH> 100644 --- a/_pytest/terminal.py +++ b/_pytest/terminal.py @@ -301,7 +301,7 @@ class TerminalReporter: l = [] for plugin, dist in plugininfo: # gets us name and version! - name = str(dis...
terinalwriter: use dash between plugin name and version
py
diff --git a/prosper/common/utilities.py b/prosper/common/utilities.py index <HASH>..<HASH> 100644 --- a/prosper/common/utilities.py +++ b/prosper/common/utilities.py @@ -89,9 +89,10 @@ def create_logger( Logger.addHandler(generalHandler) if log_level_override == 'DEBUG': + #print('LOGGER: adding std...
fixing flub with stdout logging handle
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ setup( '': ['*.po', '*.mo'], }, install_requires=[ - 'django>=1.11.29,<3.0', + 'django>=1.11.29', ], keywords='django choices models enum', classifiers=[
Remove Django<3 install_requires Django <I> support was mentioned in <I>ad4c<I>bdd4cca3a6fde7d<I>cc<I>a<I>e0a1, but still setup.py forces the downgrade
py
diff --git a/voltron/core.py b/voltron/core.py index <HASH>..<HASH> 100644 --- a/voltron/core.py +++ b/voltron/core.py @@ -167,6 +167,7 @@ class Server(object): log.debug("Dispatching requests: {}".format(self.queue)) for req in self.queue: req.response = self.dispatch_request(req) + ...
Dispatch all requests before signaling to fix GDB update
py
diff --git a/skyfield/earthlib.py b/skyfield/earthlib.py index <HASH>..<HASH> 100644 --- a/skyfield/earthlib.py +++ b/skyfield/earthlib.py @@ -77,7 +77,7 @@ def reverse_terra(xyz_au, gast, iterations=3): i += 1 C = 1.0 / sqrt(1.0 - e2 * (sin(lat) ** 2.0)) lat = arctan2(z + a * C * e2 * sin(la...
Complete elevation_m calculation (#<I>) From Dr. T.S. Kelso's explanation (<URL>)
py
diff --git a/tests/test_yb_rcmod.py b/tests/test_yb_rcmod.py index <HASH>..<HASH> 100644 --- a/tests/test_yb_rcmod.py +++ b/tests/test_yb_rcmod.py @@ -23,6 +23,11 @@ from yellowbrick import yb_rcmod class RCParamTester(unittest.TestCase): + excluded_params = { + "backend", # This cannot be changed by ma...
Fixed subsequent test failure due to checks on the backend.
py
diff --git a/tornado_eventsource/__init__.py b/tornado_eventsource/__init__.py index <HASH>..<HASH> 100644 --- a/tornado_eventsource/__init__.py +++ b/tornado_eventsource/__init__.py @@ -1,4 +1,4 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -__version__ = '0.2.0' +__version__ = '1.0.0rc1'
Bump to <I>rc1
py
diff --git a/ca/django_ca/tests/base.py b/ca/django_ca/tests/base.py index <HASH>..<HASH> 100644 --- a/ca/django_ca/tests/base.py +++ b/ca/django_ca/tests/base.py @@ -411,7 +411,9 @@ VQIDAQAB -----END PUBLIC KEY-----''' ACME_SLUG_1 = 'Mr6FfdD68lzp' ACME_SLUG_2 = 'DzW4PQ6L76PE' - re_false_password = r'^(Ba...
generalize regex for rare build failures
py
diff --git a/src/transformers/file_utils.py b/src/transformers/file_utils.py index <HASH>..<HASH> 100644 --- a/src/transformers/file_utils.py +++ b/src/transformers/file_utils.py @@ -1518,6 +1518,7 @@ def http_get(url: str, temp_file: BinaryIO, proxies=None, resume_size=0, headers progress = tqdm( unit="B...
Add unit_divisor to downloads (#<I>)
py
diff --git a/hdbscan/hdbscan_.py b/hdbscan/hdbscan_.py index <HASH>..<HASH> 100644 --- a/hdbscan/hdbscan_.py +++ b/hdbscan/hdbscan_.py @@ -172,7 +172,10 @@ def _hdbscan_sparse_distance_matrix(X, min_samples=5, alpha=1.0, if csgraph.connected_components(mutual_reachability_, directed=False, ...
Update error message as suggested by issue #<I> .
py
diff --git a/comps/__init__.py b/comps/__init__.py index <HASH>..<HASH> 100644 --- a/comps/__init__.py +++ b/comps/__init__.py @@ -3,4 +3,4 @@ A simple application that provides an entry point for integrating front end designers into a django project """ -__version__ = '0.2.0' +__version__ = '0.3.0'
Update __init__.py versioning in prep for new release
py
diff --git a/cyther/cyther.py b/cyther/cyther.py index <HASH>..<HASH> 100644 --- a/cyther/cyther.py +++ b/cyther/cyther.py @@ -5,23 +5,17 @@ #module1 = Extension('demo', sources=['demo.c']) #setup(name='PackageName', ext_modules=[module1]) - import site from distutils import sysconfig from distutils import msvcc...
Trying to fix travis problems, take 8
py
diff --git a/scapy/plist.py b/scapy/plist.py index <HASH>..<HASH> 100644 --- a/scapy/plist.py +++ b/scapy/plist.py @@ -512,4 +512,6 @@ lfilter: truth function to apply to each packet pair to decide whether it will b print(self._elt2sum((s, r))) else: print(prn(s, r)) - ...
Changing interface for filter function in SndRcv list
py
diff --git a/ftw/logchecker.py b/ftw/logchecker.py index <HASH>..<HASH> 100644 --- a/ftw/logchecker.py +++ b/ftw/logchecker.py @@ -1,14 +1,14 @@ import abc +import six +@six.add_metaclass(abc.ABCMeta) class LogChecker(): """ LogChecker is an abstract class that integrations with WAFs MUST implement. ...
Improve abstract class definition Use six as it works in both python 2 and 3.
py
diff --git a/txkazoo/recipe/partitioner.py b/txkazoo/recipe/partitioner.py index <HASH>..<HASH> 100644 --- a/txkazoo/recipe/partitioner.py +++ b/txkazoo/recipe/partitioner.py @@ -74,5 +74,4 @@ class SetPartitioner(object): return partial(threads.deferToThread, blocking_method) def __iter__(self): - ...
Actually return the iterator for the partitioner
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 @@ -21,6 +21,7 @@ from . import icmp from . import udp from . import tcp from ryu.ofproto import inet +from ryu.lib import ip IPV4_ADDRESS_PACK_STR = '!I' @@ -64,9 +...
packet lib: ipv4 default args Make ipv4 more handy by not asking for every args. I prefer to use more human-readble representation for src and dst but it leads to the API change so let's do it later with another patch.
py
diff --git a/src/foremast/consts.py b/src/foremast/consts.py index <HASH>..<HASH> 100644 --- a/src/foremast/consts.py +++ b/src/foremast/consts.py @@ -95,12 +95,16 @@ def load_dynamic_config(configurations, config_dir=getcwd()): # Insert config path so we can import it sys.path.insert(0, path.dirname(path.a...
fix: Handle missing dynamic config file
py
diff --git a/gandi/cli/modules/paas.py b/gandi/cli/modules/paas.py index <HASH>..<HASH> 100644 --- a/gandi/cli/modules/paas.py +++ b/gandi/cli/modules/paas.py @@ -238,7 +238,8 @@ class Paas(GandiModule): paas = Paas.info(cls.usable_id(id)) cls.debug('save PaaS instance information to local configurati...
Fix, vhost and vhosts are None.
py
diff --git a/util.py b/util.py index <HASH>..<HASH> 100644 --- a/util.py +++ b/util.py @@ -82,6 +82,10 @@ def convert_path (pathname): raise ValueError, "path '%s' cannot end with '/'" % pathname paths = string.split(pathname, '/') + while '.' in paths: + paths.remove('.') + if not paths: +...
Remove single "." components from pathnames, and return os.curdir if the resulting path is empty.
py
diff --git a/core/containers.py b/core/containers.py index <HASH>..<HASH> 100755 --- a/core/containers.py +++ b/core/containers.py @@ -187,7 +187,7 @@ class FCMeasurement(Measurement): newsample = self.copy() newsample.set_data(data=newdata) return newsample - + def gate(self, gate):...
FIX: Fixed bug with IDs being assigned to wrong plate + decided to keep ID unchanged unless specified by user.
py
diff --git a/atlassian/confluence.py b/atlassian/confluence.py index <HASH>..<HASH> 100644 --- a/atlassian/confluence.py +++ b/atlassian/confluence.py @@ -1453,6 +1453,7 @@ class Confluence(AtlassianRestAPI): representation="storage", minor_edit=False, version_comment=None, + editor=No...
Confluence: add editor parameter to update_or_create (#<I>) The create_page method exposes a way to create new pages with the v2 editor. This commit modifies the update_or_create method to expose this same functionality in case the page needs to be created and not updated.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,8 @@ setup( , install_requires = [ "delfick_app==0.6.7" - , "option_merge==0.9.9" - , "input_algorithms==0.4.4.3" + , "option_merge==0.9.9.1" + , "input_algorithms==0.4.4.7" ,...
Upgrading option_merge and input_algorithms
py
diff --git a/metpy/calc/cross_sections.py b/metpy/calc/cross_sections.py index <HASH>..<HASH> 100644 --- a/metpy/calc/cross_sections.py +++ b/metpy/calc/cross_sections.py @@ -208,8 +208,10 @@ def normal_component(data_x, data_y, index='index'): # Take the dot products component_norm = data_x * unit_norm[0] + ...
Reattach grid_mapping after cross-section calculations.
py
diff --git a/dddp/api.py b/dddp/api.py index <HASH>..<HASH> 100644 --- a/dddp/api.py +++ b/dddp/api.py @@ -480,7 +480,15 @@ class DDP(APIMixin): try: pub = self._registry[pub_path(name)] except KeyError: - this.error('Invalid publication name: %r' % name) + this.send...
Send `nosub` in response to bad `sub` request.
py
diff --git a/python/test/segyio_c.py b/python/test/segyio_c.py index <HASH>..<HASH> 100644 --- a/python/test/segyio_c.py +++ b/python/test/segyio_c.py @@ -117,8 +117,9 @@ class _segyioTests(unittest.TestCase): def test_read_and_write_binary_header_mmap(self): self.test_read_and_write_binary_header(True) ...
Add mmaped version of test_read_binary_header_fields
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -26,13 +26,16 @@ dev_requires = [ 'flake8>=1.6', ] -tests_require = [ +flask_requires = [ + 'Flask>=0.8', 'blinker>=1.1', +] + +tests_require = [ 'celery>=2.5', 'Django>=1.2', 'django-celery>=2.5...
Add Flask to flask requires
py
diff --git a/tests/helpers.py b/tests/helpers.py index <HASH>..<HASH> 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -31,13 +31,6 @@ except ImportError: # Python 3 class QuiltTest(unittest.TestCase): """ Base class for all TestCases """ - def assert_same_content(self, expected_file, actual_file): -...
Remove unused but dangerous-looking method It contains a spelling mistake, and would probably need porting to Python 3. It does not do any comparison as would be expected, which could make a test appear to pass when it should fail.
py
diff --git a/metpy/plots/skewt.py b/metpy/plots/skewt.py index <HASH>..<HASH> 100644 --- a/metpy/plots/skewt.py +++ b/metpy/plots/skewt.py @@ -20,8 +20,9 @@ import matplotlib.transforms as transforms import numpy as np from ._util import colored_line -from ..calc import dewpoint, dry_lapse, interp, moist_lapse, vap...
Replace deprecated interp with interpolate_1d
py
diff --git a/insteon/const.py b/insteon/const.py index <HASH>..<HASH> 100644 --- a/insteon/const.py +++ b/insteon/const.py @@ -1 +1 @@ -__version__ = '0.4.6' +__version__ = '0.5.1'
Merge (#5) * Minor version bump * patch bump
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ except ImportError: setuptools.setup( name='pyu2f', - version='0.1.2', + version='0.1.3', description='U2F host library for interacting with a U2F device over USB.', long_description='pyu...
Release <I> with python 3 support using six. (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,8 +23,8 @@ else: CleverExtension( "finitediff._finitediff", sources=[ - './finitediff/c_fornberg.f90', './finitediff/fornberg.f90', + './fin...
BUG: switch order of sources in setup.py
py
diff --git a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py index <HASH>..<HASH> 100644 --- a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py +++ b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py @@ -160,7 +160,7 @@ class Ndodb_Mysql...
I give up for quering the database only once, I will do it properly with 2 queries
py
diff --git a/djangodblog/middleware.py b/djangodblog/middleware.py index <HASH>..<HASH> 100644 --- a/djangodblog/middleware.py +++ b/djangodblog/middleware.py @@ -9,10 +9,11 @@ __all__ = ('DBLogMiddleware',) class DBLogMiddleware(object): @transaction.commit_on_success def process_exception(self, request, ex...
Don't log errors if we're in DEBUG
py
diff --git a/bokeh/charts/stats.py b/bokeh/charts/stats.py index <HASH>..<HASH> 100644 --- a/bokeh/charts/stats.py +++ b/bokeh/charts/stats.py @@ -32,8 +32,8 @@ class Stat(HasProps): # inputs column = ColumnLabel(help="""A column to use for the stat calculation. Required when providing a ColumnDataSo...
Fix issue with docstring for stat.
py
diff --git a/mistletoe/span_tokenizer.py b/mistletoe/span_tokenizer.py index <HASH>..<HASH> 100644 --- a/mistletoe/span_tokenizer.py +++ b/mistletoe/span_tokenizer.py @@ -36,6 +36,17 @@ def eval_tokens(x, y, token_buffer): return x +def eval_new_child(parent, child): + last_child = parent.children[-1] + ...
small speed boost to ParseToken.append_child
py
diff --git a/tests/test_envelope.py b/tests/test_envelope.py index <HASH>..<HASH> 100644 --- a/tests/test_envelope.py +++ b/tests/test_envelope.py @@ -34,7 +34,9 @@ class TestEnvelope: def test_attrs(self, envelope): assert envelope.sender == 'Me <me@mail.com>' assert envelope.receivers == ['him@...
separate test case for Envelope.mail_from
py
diff --git a/bcbio/ngsalign/star.py b/bcbio/ngsalign/star.py index <HASH>..<HASH> 100644 --- a/bcbio/ngsalign/star.py +++ b/bcbio/ngsalign/star.py @@ -7,6 +7,7 @@ from bcbio.provenance import do from bcbio import bam CLEANUP_FILES = ["Aligned.out.sam", "Log.out", "Log.progress.out"] +ALIGN_TAGS = ["NH", "HI", "NM"...
Add proper NM and MD tags to STAR alignments.
py
diff --git a/tests/integration/py2/nupic/algorithms/tm_test.py b/tests/integration/py2/nupic/algorithms/tm_test.py index <HASH>..<HASH> 100755 --- a/tests/integration/py2/nupic/algorithms/tm_test.py +++ b/tests/integration/py2/nupic/algorithms/tm_test.py @@ -21,7 +21,7 @@ # --------------------------------------------...
Fixed import-related error with old versions of Python
py
diff --git a/stop_words/__init__.py b/stop_words/__init__.py index <HASH>..<HASH> 100644 --- a/stop_words/__init__.py +++ b/stop_words/__init__.py @@ -57,8 +57,8 @@ def get_stop_words(language): try: language_filename = '{0}{1}.txt'.format(STOP_WORDS_DIR, language) - with open(language_filename) ...
Make the code compatible with Python 2 & 3
py
diff --git a/pyspider/libs/utils.py b/pyspider/libs/utils.py index <HASH>..<HASH> 100644 --- a/pyspider/libs/utils.py +++ b/pyspider/libs/utils.py @@ -134,7 +134,7 @@ def format_date(date, gmt_offset=0, relative=True, shorter=False, full_format=Fa str_time = "%d:%02d" % (local_date.hour, local_date.minute) ...
month not need -1 in python month not need -1 in python before change this, example in webui: lastcrawltime <I> (9-3 at 7:<I>) But actually, <I> should be "Sat Oct 3 <I>:<I>:<I> CST <I>"
py
diff --git a/esipy/client.py b/esipy/client.py index <HASH>..<HASH> 100644 --- a/esipy/client.py +++ b/esipy/client.py @@ -107,7 +107,7 @@ class EsiClient(BaseClient): raw=six.BytesIO(res.content).getvalue() ) - return response, res + return response def refresh_auth(s...
Remove the tuple in request() (only return the parsed response)
py
diff --git a/ziggurat_foundations/models/services/resource_tree.py b/ziggurat_foundations/models/services/resource_tree.py index <HASH>..<HASH> 100644 --- a/ziggurat_foundations/models/services/resource_tree.py +++ b/ziggurat_foundations/models/services/resource_tree.py @@ -10,7 +10,6 @@ class ResourceTreeService(objec...
resource_tree: fixed wrong argument
py
diff --git a/recsql/rest_table.py b/recsql/rest_table.py index <HASH>..<HASH> 100644 --- a/recsql/rest_table.py +++ b/recsql/rest_table.py @@ -33,6 +33,7 @@ with >>> import recsql.rest_table as T >>> P = T.Table2array(T.__doc__) + >>> P.recarray() rec.array([(u'A. Einstein', 42, 1921), (u'P. Dirac', 31, 193...
added rest_table to docs: missed line git-svn-id: svn+ssh://gonzo.med.jhmi.edu/scratch/svn/woolf_repository/users/oliver/Library/RecSQL@<I> df5ba8eb-4b0b-<I>-8c<I>-c<I>f<I>b<I>c
py